filename | src/cpu.h |
changeset | 1091:186558374345 |
prev | 1065:bc1cc0c54917 |
author | nkeynes |
date | Tue Dec 15 08:46:37 2009 +1000 (13 years ago) |
permissions | -rw-r--r-- |
last change | Add side-by-side x86+sh4 disassembly output Print SH4 state information and disassembly of the current block when crashing. Fix delay slot instruction in conditional branch not being marked as a delay-slot instruction in the branch-not-taken path. Rename REG_* defines in cpu.h to avoid conflict with translation defs |
file | annotate | diff | log | raw |
1.1 --- a/src/cpu.h Sun Jul 05 13:52:50 2009 +10001.2 +++ b/src/cpu.h Tue Dec 15 08:46:37 2009 +10001.3 @@ -19,6 +19,8 @@1.4 #ifndef lxdream_cpu_H1.5 #define lxdream_cpu_H 11.7 +#include <stdio.h>1.8 +1.9 #include "lxdream.h"1.10 #include "mem.h"1.12 @@ -36,10 +38,10 @@1.13 */1.14 typedef uint32_t (*disasm_func_t)(uint32_t pc, char *buffer, int buflen, char *opcode );1.16 -#define REG_INT 01.17 -#define REG_FLOAT 11.18 -#define REG_DOUBLE 21.19 -#define REG_NONE 3 /* Used for empty/separator field */1.20 +#define REG_TYPE_INT 01.21 +#define REG_TYPE_FLOAT 11.22 +#define REG_TYPE_DOUBLE 21.23 +#define REG_TYPE_NONE 3 /* Used for empty/separator field */1.25 /**1.26 * Structure that defines a single register in a CPU for display purposes.1.27 @@ -94,5 +96,6 @@1.28 #endif1.30 gboolean gdb_init_server( const char *interface, int port, cpu_desc_t cpu, gboolean mmu );1.31 +void cpu_print_registers( FILE *out, cpu_desc_t cpu );1.33 #endif /* !lxdream_cpu_H */
.