filename | src/sh4/mem.h |
changeset | 2:42349f6ea216 |
prev | 1:eea311cfd33e |
author | nkeynes |
date | Thu Dec 08 13:38:00 2005 +0000 (18 years ago) |
permissions | -rw-r--r-- |
last change | Generalise the core debug window to allow multiple instances. Add cpu description structure to define different cpus for use by the debug window, in preparation for ARM implementation |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/mem.h Sat Mar 13 00:03:32 2004 +00001.2 +++ b/src/sh4/mem.h Thu Dec 08 13:38:00 2005 +00001.3 @@ -11,13 +11,13 @@1.4 #endif1.5 #endif1.7 -struct mem_region {1.8 +typedef struct mem_region {1.9 uint32_t base;1.10 uint32_t size;1.11 char *name;1.12 char *mem;1.13 int flags;1.14 -};1.15 +} *mem_region_t;1.17 #define MAX_IO_REGIONS 241.18 #define MAX_MEM_REGIONS 81.19 @@ -48,6 +48,17 @@1.20 void mem_init( void );1.21 void mem_reset( void );1.23 +#define ENABLE_WATCH 11.24 +1.25 +#define WATCH_WRITE 11.26 +#define WATCH_READ 21.27 +#define WATCH_EXEC 3 /* AKA Breakpoint :) */1.28 +1.29 +typedef struct watch_point *watch_point_t;1.30 +1.31 +watch_point_t mem_new_watch( uint32_t start, uint32_t end, int flags );1.32 +void mem_delete_watch( watch_point_t watch );1.33 +watch_point_t mem_is_watched( uint32_t addr, int size, int op );1.35 /* mmucr register bits */1.36 #define MMUCR_AT 0x00000001 /* Address Translation enabled */
.