summaryrefslogtreecommitdiff
path: root/backend.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-26 23:13:37 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-26 23:13:37 -0700
commit8b7027061d5d79712f2bdd859f55923d571efb4f (patch)
treeb7d0e553d1fa1f450e21f64e561a2b74bc849530 /backend.h
parent042768acd31ac2a59049db55e31b647c2eb51818 (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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend.h b/backend.h
index 6c18675..388ce3a 100644
--- a/backend.h
+++ b/backend.h
@@ -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);