1
0
mirror of https://github.com/prirun/p50em.git synced 2026-04-03 11:52:47 +00:00

Remove bogus var from ea64v.h, add quit handler to flush trace buffers

This commit is contained in:
Jim
2011-10-19 11:02:23 -04:00
parent ec9496ec75
commit ff791c1b9c
2 changed files with 7 additions and 2 deletions

View File

@@ -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
View File

@@ -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 */