OSDN Git Service

mpic: Unify numbering scheme
authorAlexander Graf <agraf@suse.de>
Fri, 7 Dec 2012 15:10:34 +0000 (16:10 +0100)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 12:12:55 +0000 (13:12 +0100)
commitcdbb912a6f8b5f325df3a6fd42cb2843032050c9
tree05c1ddc1aea6840b20f60e140a365de17e3235b9
parent38898d7ed803cee5105246150725487add78cbd7
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>
hw/openpic.c
hw/ppc/e500.c