aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2018-06-08 13:17:37 -0400
committerJohn Snow <jsnow@redhat.com>2018-06-08 13:17:37 -0400
commit96034081dd2dd5177ffdf19475712264783c7bef (patch)
treee729bf3ed29dd6f007f36041953fbab4d93d6a84
parentda868a46db847123965a8b234f2a33d73fa8d26d (diff)
downloadqemu-96034081dd2dd5177ffdf19475712264783c7bef.zip
qemu-96034081dd2dd5177ffdf19475712264783c7bef.tar.gz
qemu-96034081dd2dd5177ffdf19475712264783c7bef.tar.bz2
ahci: fix host register max address
Yes, comment, it ought to be 0x2C. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180531222835.16558-11-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
-rw-r--r--hw/ide/ahci_internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/ide/ahci_internal.h b/hw/ide/ahci_internal.h
index af366db..f9dcf8b 100644
--- a/hw/ide/ahci_internal.h
+++ b/hw/ide/ahci_internal.h
@@ -224,8 +224,7 @@ enum AHCIPortIRQ {
#define SATA_SIGNATURE_CDROM 0xeb140101
#define SATA_SIGNATURE_DISK 0x00000101
-#define AHCI_GENERIC_HOST_CONTROL_REGS_MAX_ADDR 0x20
- /* Shouldn't this be 0x2c? */
+#define AHCI_GENERIC_HOST_CONTROL_REGS_MAX_ADDR 0x2c
#define AHCI_PORT_REGS_START_ADDR 0x100
#define AHCI_PORT_ADDR_OFFSET_MASK 0x7f