[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix reset bit for realview platform.
From: |
Jean-Christophe DUBOIS |
Subject: |
[Qemu-devel] [PATCH] Fix reset bit for realview platform. |
Date: |
Sat, 5 Nov 2011 00:22:36 +0100 |
According to realview documentation [1], the bit used to reset the board
is bit 2 and not bit 8.
This is also in sync with Linux source code [2].
[1]
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0417d/BBACIGAD.html
[2]
http://lxr.free-electrons.com/source/arch/arm/mach-realview/realview_pba8.c#L274
Signed-off-by: Jean-Christophe DUBOIS <address@hidden>
---
hw/arm_sysctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c
index 17cf6f7..aef271e 100644
--- a/hw/arm_sysctl.c
+++ b/hw/arm_sysctl.c
@@ -237,7 +237,7 @@ static void arm_sysctl_write(void *opaque,
target_phys_addr_t offset,
}
if (s->lockval == LOCK_VALUE) {
s->resetlevel = val;
- if (val & 0x100)
+ if (val & 0x04)
qemu_system_reset_request ();
}
break;
--
1.7.5.4
- [Qemu-devel] [PATCH] Fix reset bit for realview platform.,
Jean-Christophe DUBOIS <=