* sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
illegal zero-sized array. * sim-core.c (sim_core_xor_read_buffer): same.
This commit is contained in:
parent
a1efa0d880
commit
31dda65aff
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
|
||||
|
||||
* sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
|
||||
illegal zero-sized array.
|
||||
* sim-core.c (sim_core_xor_read_buffer): same.
|
||||
|
||||
Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
|
||||
|
||||
* nltvals.def: Regenerate.
|
||||
|
|
|
@ -660,7 +660,7 @@ sim_core_xor_read_buffer (SIM_DESC sd,
|
|||
else
|
||||
/* only break up transfers when xor-endian is both selected and enabled */
|
||||
{
|
||||
unsigned_1 x[WITH_XOR_ENDIAN];
|
||||
unsigned_1 x[WITH_XOR_ENDIAN + 1]; /* +1 to avoid zero-sized array */
|
||||
unsigned nr_transfered = 0;
|
||||
address_word start = addr;
|
||||
unsigned nr_this_transfer = (WITH_XOR_ENDIAN - (addr & ~(WITH_XOR_ENDIAN - 1)));
|
||||
|
|
Loading…
Reference in a new issue