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:
Mike Frysinger
2015-12-25 00:23:50 -05:00
parent 268c91391a
commit 9e8e7dd966
4 changed files with 13 additions and 13 deletions

View File

@ -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)