mirror of
https://github.com/prirun/p50em.git
synced 2026-04-03 03:43:19 +00:00
Remove bogus var from ea64v.h, add quit handler to flush trace buffers
This commit is contained in:
3
ea64v.h
3
ea64v.h
@@ -10,7 +10,6 @@ static inline ea_t ea64v (unsigned short inst, ea_t earp) {
|
||||
unsigned short br;
|
||||
unsigned short i;
|
||||
unsigned short x;
|
||||
unsigned short y;
|
||||
unsigned short xok;
|
||||
unsigned short a;
|
||||
unsigned short ixy;
|
||||
@@ -49,7 +48,7 @@ static inline ea_t ea64v (unsigned short inst, ea_t earp) {
|
||||
|
||||
opcode = ((inst & 036000) != 032000) ? ((inst & 036000) >> 4) : ((inst & 076000) >> 4);
|
||||
opcode |= ((inst >> 2) & 3); /* opcode extension */
|
||||
TRACE(T_EAV, " new opcode=%#05o, y=%d, br=%d, ixy=%d, xok=%d\n", opcode, (y != 0), br, ixy, xok);
|
||||
TRACE(T_EAV, " new opcode=%#05o, br=%d, ixy=%d, xok=%d\n", opcode, br, ixy, xok);
|
||||
#endif
|
||||
|
||||
ea_s = getcrs16(PBH+br*2) | (ea_s & RINGMASK16);
|
||||
|
||||
6
em.c
6
em.c
@@ -1635,6 +1635,10 @@ void sensorcheck () {
|
||||
sensorabort = 1;
|
||||
}
|
||||
|
||||
void sigquit() {
|
||||
fatal("Quit");
|
||||
}
|
||||
|
||||
/* machine check handler, called with check vector locations
|
||||
The first arg is used when PX is disabled, the 2nd when PX is enabled. */
|
||||
|
||||
@@ -4516,6 +4520,8 @@ main (int argc, char **argv) {
|
||||
|
||||
signal (SIGTERM, sensorcheck);
|
||||
|
||||
signal (SIGQUIT, sigquit);
|
||||
|
||||
#ifndef NOTRACE
|
||||
|
||||
/* open trace log */
|
||||
|
||||
Reference in New Issue
Block a user