« Previous | Next » 

Revision c02e1eac

IDc02e1eac887b1b0aee7361b1fcf889e7d47fed9d

Added by Julien Grall over 11 years ago

hw/pc.c: Fix converting of ioport_register* to MemoryRegion

The commit 258711 introduced MemoryRegion to replace ioport_region*
for ioport 80h and F0h.
A MemoryRegion needs to have both read and write callback otherwise a segfault
will occur when an access is made.

The previous behaviour of this both ioport is to return 0xffffffffffffffff.
So keep this behaviour.

Reported-by: Adam Lackorzynski <>
Signed-off-by: Julien Grall <>
Tested-by: Adam Lackorzynski <>
Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences