diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-04-26 23:13:37 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-04-26 23:13:37 -0700 |
commit | 8b7027061d5d79712f2bdd859f55923d571efb4f (patch) | |
tree | b7d0e553d1fa1f450e21f64e561a2b74bc849530 /backend.h | |
parent | 042768acd31ac2a59049db55e31b647c2eb51818 (diff) |
Initial stab at implementing address error exceptions. Need to fill in the value of IR, undefined bits of last stack frame word and properly deal with address errors that occur during exception processing.
Diffstat (limited to 'backend.h')
-rw-r--r-- | backend.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -86,6 +86,8 @@ typedef struct { code_ptr handle_cycle_limit; code_ptr handle_cycle_limit_int; code_ptr handle_code_write; + code_ptr handle_align_error_write; + code_ptr handle_align_error_read; uint32_t memmap_chunks; uint32_t address_mask; uint32_t max_address; @@ -101,6 +103,7 @@ typedef struct { uint8_t limit; uint8_t scratch1; uint8_t scratch2; + uint8_t align_error_mask; } cpu_options; typedef uint8_t * (*native_addr_func)(void * context, uint32_t address); |