URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
[/] [eco32/] [trunk/] [sim/] [error.c] - Rev 313
Go to most recent revision | Compare with Previous | Blame | View Log
/* * error.c -- error handler */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include "common.h" #include "console.h" #include "error.h" #include "cpu.h" #include "trace.h" #include "mmu.h" #include "memory.h" #include "timer.h" #include "dspkbd.h" #include "serial.h" #include "disk.h" #include "output.h" #include "shutdown.h" #include "graph.h" void error(char *fmt, ...) { va_list ap; cpuExit(); traceExit(); mmuExit(); memoryExit(); timerExit(); displayExit(); keyboardExit(); serialExit(); diskExit(); outputExit(); shutdownExit(); graphExit(); cExit(); va_start(ap, fmt); fprintf(stderr, "Error: "); vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); va_end(ap); exit(1); }
Go to most recent revision | Compare with Previous | Blame | View Log