Skip to content

Commit

Permalink
chip: add QUIRK_NO_QEMU and enable homer/occ region in emulated host
Browse files Browse the repository at this point in the history
enable homer/occ region for PNV emulated host in QEMU and add enum
QUIRK_NO_QEMU to flag PNV mode in Qemu for imc code path

Signed-off-by: Balamuruhan S <bala24@linux.ibm.com>
  • Loading branch information
balamuruhans committed Aug 6, 2019
1 parent 0e1db80 commit a655514
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void init_chips(void)
if (dt_node_is_compatible(dt_root, "qemu,powernv") ||
dt_node_is_compatible(dt_root, "qemu,powernv8") ||
dt_node_is_compatible(dt_root, "qemu,powernv9")) {
proc_chip_quirks |= QUIRK_NO_CHIPTOD | QUIRK_NO_PBA
proc_chip_quirks |= QUIRK_NO_CHIPTOD | QUIRK_NO_QEMU
| QUIRK_NO_DIRECT_CTL | QUIRK_NO_RNG;
prlog(PR_NOTICE, "CHIP: Detected Qemu simulator\n");
}
Expand Down
1 change: 1 addition & 0 deletions include/chip.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ enum proc_chip_quirks {
QUIRK_SLOW_SIM = 0x00000040,
QUIRK_NO_DIRECT_CTL = 0x00000080,
QUIRK_NO_RNG = 0x00000100,
QUIRK_NO_QEMU = 0x00000200,
};

extern enum proc_chip_quirks proc_chip_quirks;
Expand Down

0 comments on commit a655514

Please sign in to comment.