filename | src/mem.h |
changeset | 566:59be465e5f01 |
prev | 562:e598411b640b |
next | 1065:bc1cc0c54917 |
author | nkeynes |
date | Mon Jan 14 10:23:49 2008 +0000 (16 years ago) |
branch | lxdream-mmu |
permissions | -rw-r--r-- |
last change | Remove asm file and convert to inline (easier to cope with platform conventions) Add breakpoint support Add MMU store-queue support |
file | annotate | diff | log | raw |
1.1 --- a/src/mem.h Tue Jan 01 05:48:06 2008 +00001.2 +++ b/src/mem.h Mon Jan 14 10:23:49 2008 +00001.3 @@ -71,25 +71,23 @@1.5 #define ENABLE_DEBUG_MODE 11.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.15 #define MAX_BREAKPOINTS 321.16 -#define BREAK_NONE 01.17 -#define BREAK_ONESHOT 11.18 -#define BREAK_KEEP 21.20 -#undef ENABLE_WATCH1.21 +1.22 +#define MEM_FLAG_ROM 4 /* Mem region is ROM-based */1.23 +#define MEM_FLAG_RAM 61.25 #define WATCH_WRITE 11.26 #define WATCH_READ 21.27 #define WATCH_EXEC 3 /* AKA Breakpoint :) */1.29 -#define MEM_FLAG_ROM 4 /* Mem region is ROM-based */1.30 -#define MEM_FLAG_RAM 61.31 -1.32 typedef struct watch_point *watch_point_t;1.34 watch_point_t mem_new_watch( uint32_t start, uint32_t end, int flags );
.