From 8b7027061d5d79712f2bdd859f55923d571efb4f Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 26 Apr 2016 23:13:37 -0700 Subject: 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. --- backend.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend.h') 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); -- cgit v1.2.3