OSDN Git Service

openpic: add basic support for MPIC v4.2
authorScott Wood <scottwood@freescale.com>
Mon, 21 Jan 2013 15:53:53 +0000 (15:53 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 25 Jan 2013 21:02:56 +0000 (22:02 +0100)
commite0dfe5b18919a6a4deb841dcf3212e3e998c95e5
tree777b08a441fd12990db1579523f877ee32a5bdb2
parent03274d44f655f7b822e845e79fa32b261cdb0774
openpic: add basic support for MPIC v4.2

Besides the new value in the version register, this provides:
- ILR support, which includes:
  - IDR becoming a pure CPU bitmap, allowing 32 CPUs
  - machine check output support (though other parts of QEMU need to
    be fixed for it to do something other than immediately reboot the
    guest)
- dummy error interrupt support (EISR0/EIMR0 read as zero)
  - actually all FSL MPICs get all summary registers returning zero for now,
    which includes EISR0/EIMR0

Various refactoring is done to support these changes and to ease
new functionality (e.g. a more flexible way of declaring regions).

Just as the code was already not a full implementation of MPIC v2.0,
this is not a full implementation of MPIC v4.2 -- e.g. it still has only
one bank of MSIs.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/openpic.c
hw/openpic.h