mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
sim: always enable callback memory
We enable WITH_CALLBACK_MEMORY everywhere and don't provide a way to turn it off, and no target does so. Make it unconditional for all to keep things simple.
This commit is contained in:
@ -576,8 +576,7 @@ sim_core_write_buffer (SIM_DESC sd,
|
||||
if (mapping == NULL)
|
||||
break;
|
||||
#if (WITH_DEVICES)
|
||||
if (WITH_CALLBACK_MEMORY
|
||||
&& mapping->device != NULL)
|
||||
if (mapping->device != NULL)
|
||||
{
|
||||
int nr_bytes = len - count;
|
||||
sim_cia cia = cpu ? CPU_PC_GET (cpu) : NULL_CIA;
|
||||
@ -597,8 +596,7 @@ sim_core_write_buffer (SIM_DESC sd,
|
||||
}
|
||||
#endif
|
||||
#if (WITH_HW)
|
||||
if (WITH_CALLBACK_MEMORY
|
||||
&& mapping->device != NULL)
|
||||
if (mapping->device != NULL)
|
||||
{
|
||||
int nr_bytes = len - count;
|
||||
if (raddr + nr_bytes - 1 > mapping->bound)
|
||||
|
Reference in New Issue
Block a user