Search
lxdream.org :: lxdream/src/cpu.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cpu.h
changeset 1091:186558374345
prev1065:bc1cc0c54917
author nkeynes
date Tue Dec 15 08:46:37 2009 +1000 (10 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 +1000
1.2 +++ b/src/cpu.h Tue Dec 15 08:46:37 2009 +1000
1.3 @@ -19,6 +19,8 @@
1.4 #ifndef lxdream_cpu_H
1.5 #define lxdream_cpu_H 1
1.6
1.7 +#include <stdio.h>
1.8 +
1.9 #include "lxdream.h"
1.10 #include "mem.h"
1.11
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.15
1.16 -#define REG_INT 0
1.17 -#define REG_FLOAT 1
1.18 -#define REG_DOUBLE 2
1.19 -#define REG_NONE 3 /* Used for empty/separator field */
1.20 +#define REG_TYPE_INT 0
1.21 +#define REG_TYPE_FLOAT 1
1.22 +#define REG_TYPE_DOUBLE 2
1.23 +#define REG_TYPE_NONE 3 /* Used for empty/separator field */
1.24
1.25 /**
1.26 * Structure that defines a single register in a CPU for display purposes.
1.27 @@ -94,5 +96,6 @@
1.28 #endif
1.29
1.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.32
1.33 #endif /* !lxdream_cpu_H */
.