diff options
author | Alexander Graf <agraf@suse.de> | 2012-12-07 16:10:34 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-12-14 13:12:55 +0100 |
commit | cdbb912a6f8b5f325df3a6fd42cb2843032050c9 (patch) | |
tree | 05c1ddc1aea6840b20f60e140a365de17e3235b9 /hw/ppc | |
parent | 38898d7ed803cee5105246150725487add78cbd7 (diff) | |
download | qemu-cdbb912a6f8b5f325df3a6fd42cb2843032050c9.zip qemu-cdbb912a6f8b5f325df3a6fd42cb2843032050c9.tar.gz qemu-cdbb912a6f8b5f325df3a6fd42cb2843032050c9.tar.bz2 |
mpic: Unify numbering scheme
MPIC interrupt numbers in Linux (device tree) and in QEMU are different,
because QEMU takes the sparseness of the IRQ number space into account.
Remove that cleverness and instead assume a flat number space. This makes
the code easier to understand, because we are actually aligned with Linux
on the view of our worlds.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/e500.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 47e2d41..f3e97d8 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -502,13 +502,13 @@ void ppce500_init(PPCE500Params *params) /* Serial */ if (serial_hds[0]) { serial_mm_init(ccsr_addr_space, MPC8544_SERIAL0_REGS_OFFSET, - 0, mpic[12+26], 399193, + 0, mpic[42], 399193, serial_hds[0], DEVICE_BIG_ENDIAN); } if (serial_hds[1]) { serial_mm_init(ccsr_addr_space, MPC8544_SERIAL1_REGS_OFFSET, - 0, mpic[12+26], 399193, + 0, mpic[42], 399193, serial_hds[1], DEVICE_BIG_ENDIAN); } |