Search
lxdream.org :: lxdream/src/mem.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/mem.h
changeset 566:59be465e5f01
prev562:e598411b640b
next1065:bc1cc0c54917
author nkeynes
date Tue Jan 01 08:57:33 2008 +0000 (14 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Add breakpoint_type_t enum (general cleanup)
file annotate diff log raw
1.1 --- a/src/mem.h Tue Jan 01 05:48:06 2008 +0000
1.2 +++ b/src/mem.h Tue Jan 01 08:57:33 2008 +0000
1.3 @@ -71,25 +71,23 @@
1.4
1.5 #define ENABLE_DEBUG_MODE 1
1.6
1.7 +typedef enum { BREAK_NONE=0, BREAK_ONESHOT=1, BREAK_KEEP=2 } breakpoint_type_t;
1.8 +
1.9 struct breakpoint_struct {
1.10 uint32_t address;
1.11 - int type;
1.12 + breakpoint_type_t type;
1.13 };
1.14
1.15 #define MAX_BREAKPOINTS 32
1.16 -#define BREAK_NONE 0
1.17 -#define BREAK_ONESHOT 1
1.18 -#define BREAK_KEEP 2
1.19
1.20 -#undef ENABLE_WATCH
1.21 +
1.22 +#define MEM_FLAG_ROM 4 /* Mem region is ROM-based */
1.23 +#define MEM_FLAG_RAM 6
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 -#define MEM_FLAG_ROM 4 /* Mem region is ROM-based */
1.30 -#define MEM_FLAG_RAM 6
1.31 -
1.32 typedef struct watch_point *watch_point_t;
1.33
1.34 watch_point_t mem_new_watch( uint32_t start, uint32_t end, int flags );
.