OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [error.c] - Blame information for rev 292

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 hellwig
/*
2
 * error.c -- error handler
3
 */
4
 
5
 
6
#include <stdio.h>
7
#include <stdlib.h>
8
#include <string.h>
9
#include <stdarg.h>
10
 
11
#include "common.h"
12
#include "console.h"
13
#include "error.h"
14
#include "cpu.h"
15 275 hellwig
#include "trace.h"
16 8 hellwig
#include "mmu.h"
17
#include "memory.h"
18
#include "timer.h"
19
#include "dspkbd.h"
20 246 hellwig
#include "serial.h"
21 8 hellwig
#include "disk.h"
22
#include "output.h"
23 25 hellwig
#include "shutdown.h"
24 8 hellwig
#include "graph.h"
25
 
26
 
27
void error(char *fmt, ...) {
28
  va_list ap;
29
 
30
  cpuExit();
31 275 hellwig
  traceExit();
32 8 hellwig
  mmuExit();
33
  memoryExit();
34
  timerExit();
35
  displayExit();
36
  keyboardExit();
37 246 hellwig
  serialExit();
38 8 hellwig
  diskExit();
39
  outputExit();
40 25 hellwig
  shutdownExit();
41 8 hellwig
  graphExit();
42
  cExit();
43
  va_start(ap, fmt);
44
  fprintf(stderr, "Error: ");
45
  vfprintf(stderr, fmt, ap);
46
  fprintf(stderr, "\n");
47
  va_end(ap);
48
  exit(1);
49
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.