diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-10-07 09:19:49 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-10-16 11:11:10 +0000 |
commit | 6e5580ca2b7a104fac865885e997da8b088de652 (patch) | |
tree | 6e712e4dd6382ca1550d65d8c4d401f5a8d880b8 /hw/ppc_prep.c | |
parent | fc1a5e0a246848c5bba271d39882f8d7b15da682 (diff) | |
download | hqemu-6e5580ca2b7a104fac865885e997da8b088de652.zip hqemu-6e5580ca2b7a104fac865885e997da8b088de652.tar.gz |
i8259: PREP: Replace pic_intack_read with pic_read_irq
There is nothing in the i8259 spec that justifies the special
pic_intack_read. At least the Linux PREP kernels configure the PICs
properly so that pic_read_irq returns identical values, and setting
read_reg_select in PIC0 cannot be derived from any special i8259 mode.
So switch ppc_prep to pic_read_irq and drop the now unused PIC code.
CC: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ppc_prep.c')
-rw-r--r-- | hw/ppc_prep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index d26049b..6427baa 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -130,7 +130,7 @@ static inline uint32_t _PPC_intack_read(target_phys_addr_t addr) uint32_t retval = 0; if ((addr & 0xf) == 0) - retval = pic_intack_read(isa_pic); + retval = pic_read_irq(isa_pic); #if 0 printf("%s: 0x" TARGET_FMT_plx " <= %08" PRIx32 "\n", __func__, addr, retval); |