diff options
Diffstat (limited to 'sim/common/sim-core.h')
-rw-r--r-- | sim/common/sim-core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/sim-core.h b/sim/common/sim-core.h index a2d5ed9..686a845 100644 --- a/sim/common/sim-core.h +++ b/sim/common/sim-core.h @@ -48,7 +48,7 @@ struct _sim_core_mapping { unsigned_word nr_bytes; unsigned mask; /* memory map */ - int free_buffer; + void *free_buffer; void *buffer; /* callback map */ device *device; @@ -90,7 +90,7 @@ struct _sim_core { typedef struct _sim_cpu_core { sim_core_common common; - address_word xor[WITH_XOR_ENDIAN]; + address_word xor[WITH_XOR_ENDIAN + 1]; /* +1 to avoid zero-sized array */ } sim_cpu_core; |