Search
lxdream.org :: lxdream/src/sh4/mem.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/mem.h
changeset 2:42349f6ea216
prev1:eea311cfd33e
author nkeynes
date Sat Oct 02 05:49:39 2004 +0000 (19 years ago)
permissions -rw-r--r--
last change compile fix
file annotate diff log raw
1.1 --- a/src/sh4/mem.h Sat Mar 13 00:03:32 2004 +0000
1.2 +++ b/src/sh4/mem.h Sat Oct 02 05:49:39 2004 +0000
1.3 @@ -11,13 +11,13 @@
1.4 #endif
1.5 #endif
1.6
1.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.16
1.17 #define MAX_IO_REGIONS 24
1.18 #define MAX_MEM_REGIONS 8
1.19 @@ -48,6 +48,17 @@
1.20 void mem_init( void );
1.21 void mem_reset( void );
1.22
1.23 +#define ENABLE_WATCH 1
1.24 +
1.25 +#define WATCH_WRITE 1
1.26 +#define WATCH_READ 2
1.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.34
1.35 /* mmucr register bits */
1.36 #define MMUCR_AT 0x00000001 /* Address Translation enabled */
.