Commit e04c16c
authored
Fixes for PPC64 CPU emulation (#2308)
* Fix setting PPC64 CPU model manually
The default POWER10 1.0 was pointing to the correct place in the array,
but for manually set indices we still need to append the same offset in
order to set the correct CPU.
* Actually set MSR.HV correctly on reset
Without this, PPC64 models with the HV bit do not work.
hreg_store_msr cannot set MSR.HV to 1 even if alter_hv = 1,
it just takes the value from the environment unless alter_hv = 1
*AND* MSR.HV was already set.
if (!alter_hv || !(env->msr & MSR_HVB)) {
value &= ~MSR_HVB;
value |= env->msr & MSR_HVB;
}1 parent 5133d0d commit e04c16c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10123 | 10123 | | |
10124 | 10124 | | |
10125 | 10125 | | |
| 10126 | + | |
10126 | 10127 | | |
10127 | 10128 | | |
10128 | 10129 | | |
| |||
11011 | 11012 | | |
11012 | 11013 | | |
11013 | 11014 | | |
11014 | | - | |
| 11015 | + | |
11015 | 11016 | | |
11016 | 11017 | | |
11017 | 11018 | | |
11018 | 11019 | | |
| 11020 | + | |
11019 | 11021 | | |
11020 | 11022 | | |
11021 | 11023 | | |
| |||
0 commit comments