4 #include "magpie_regdump.h"
7 #if !defined(__ASSEMBLER__)
11 * This must match the state saved by the target exception handler.
14 #define RD_SIZE sizeof(CPU_exception_frame_t)
17 * Target CPU state at the time of failure is reflected
18 * in a register dump, which the Host can fetch through
19 * the diagnostic window.
21 struct register_dump_s {
22 uint32_t target_id; /* Target ID */
23 uint32_t assline; /* Line number (if assertion failure) */
24 uint32_t pc; /* Program Counter at time of exception */
25 uint32_t badvaddr; /* Virtual address causing exception */
26 CPU_exception_frame_t exc_frame; /* CPU-specific exception info */
28 /* Could copy top of stack here, too.... */
32 #endif /* __ASSEMBLER__ */
33 #endif /* __REGDUMP_H__ */