qemu/include/hw/ppc
Alexander Graf e81a982aa5 PPC: Clean up DECR implementation
There are 3 different variants of the decrementor for BookE and BookS.

The BookE variant sets TSR[DIS] to 1 when the DEC value becomes 1 or 0. TSR[DIS]
is then the indicator whether the decrementor interrupt line is asserted or not.

The old BookS variant treats DEC as an edge interrupt that gets triggered when
the DEC value's top bit turns 1 from 0.

The new BookS variant maintains the assertion bit inside DEC itself. Whenever
the DEC value becomes negative (top bit set) the DEC interrupt line is asserted.

So far we implemented mostly the old BookS variant. Let's do them all properly.

This fixes booting pseries ppc64 guest images in TCG mode for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
2014-04-08 11:20:04 +02:00
..
mac_dbdma.h
openpic.h
ppc4xx.h
ppc_e500.h
ppc.h PPC: Clean up DECR implementation 2014-04-08 11:20:04 +02:00
spapr_vio.h
spapr.h spapr_hcall: Fix little-endian resource handling in H_SET_MODE 2014-03-20 02:39:33 +01:00
xics.h