mirror of
https://github.com/86Box/86Box.git
synced 2026-02-28 01:44:22 -07:00
Small formatting changes
This commit is contained in:
@@ -2970,10 +2970,10 @@ void cpu_WRMSR()
|
||||
cpu_log("MTRR physmask[%d] = %08llx\n", temp2, temp);
|
||||
|
||||
if ((mtrr_physmask_msr[temp2] >> 11) & 0x1)
|
||||
mem_del_mtrr(mtrr_physbase_msr[temp2] & ~(0xFFF), mtrr_physmask_msr[temp2] & ~(0xFFF));
|
||||
mem_del_mtrr(mtrr_physbase_msr[temp2] & ~(0xfff), mtrr_physmask_msr[temp2] & ~(0xfff));
|
||||
|
||||
if ((temp >> 11) & 0x1)
|
||||
mem_add_mtrr(mtrr_physbase_msr[temp2] & ~(0xFFF), temp & ~(0xFFF), mtrr_physbase_msr[temp2] & 0xFF);
|
||||
mem_add_mtrr(mtrr_physbase_msr[temp2] & ~(0xfff), temp & ~(0xfff), mtrr_physbase_msr[temp2] & 0xff);
|
||||
|
||||
mtrr_physmask_msr[temp2] = temp;
|
||||
} else {
|
||||
|
||||
@@ -810,7 +810,7 @@ nvr_start(nvr_t *nvr)
|
||||
uint16_t checksum = 0;
|
||||
for (i = 0x10; i <= 0x2d; i++)
|
||||
checksum += nvr->regs[i];
|
||||
nvr->regs[0x2e] = checksum >> 8;
|
||||
nvr->regs[0x2e] = (checksum >> 8);
|
||||
nvr->regs[0x2f] = checksum;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user