Skip to content

Commit cad112d

Browse files
authored
Merge pull request #121 from AFLplusplus/fix_ich9_snapshot
Fix ich9 snapshot
2 parents a2180ef + 8e6eb8a commit cad112d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hw/isa/lpc_ich9.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,10 @@ static void ich9_lpc_rcba_update(ICH9LPCState *lpc, uint32_t rcba_old)
518518
if (rcba_old & ICH9_LPC_RCBA_EN) {
519519
memory_region_del_subregion(get_system_memory(), &lpc->rcrb_mem);
520520
}
521-
if (rcba & ICH9_LPC_RCBA_EN) {
521+
if (rcba & ICH9_LPC_RCBA_EN
522+
//// --- Begin LibAFL code ---
523+
&& !lpc->rcrb_mem.container) {
524+
//// --- End LibAFL code ---
522525
memory_region_add_subregion_overlap(get_system_memory(),
523526
rcba & ICH9_LPC_RCBA_BA_MASK,
524527
&lpc->rcrb_mem, 1);

0 commit comments

Comments
 (0)