i8259: Convert to MemoryRegion
authorRichard Henderson <rth@twiddle.net>
Wed, 10 Aug 2011 22:28:16 +0000 (15:28 -0700)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 11:58:37 +0000 (14:58 +0300)
commitf11450d551aba3e2c46c0a70fef013d5dc1edae0
tree9fc37b1454dc62514c36020a8cff4892c6b975ed
parenta01f637ccd30dfbd5c9ab399869bcdaf1be835ec
i8259: Convert to MemoryRegion

The only non-obvious part is pic_poll_read which used
"addr1 >> 7" to detect whether one referred to either
the master or slave PIC.  Instead, test this directly.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/i8259.c