mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
hw/integratorcp: Fix sense of REMAP bit
Fix the sense of the REMAP bit: 0 should mean "map flash", 1 should mean "map RAM". Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
parent
14763ec873
commit
4753dea8c1
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ static uint64_t integratorcm_read(void *opaque, target_phys_addr_t offset,
|
||||||
|
|
||||||
static void integratorcm_do_remap(integratorcm_state *s, int flash)
|
static void integratorcm_do_remap(integratorcm_state *s, int flash)
|
||||||
{
|
{
|
||||||
if (flash) {
|
if (!flash) {
|
||||||
if (s->flash_mapped) {
|
if (s->flash_mapped) {
|
||||||
sysbus_del_memory(&s->busdev, &s->flash);
|
sysbus_del_memory(&s->busdev, &s->flash);
|
||||||
s->flash_mapped = false;
|
s->flash_mapped = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue