Re: [PATCH v4] target/ppc: Fix PMU hflags calculation

2023-06-01 Thread Daniel Henrique Barboza
Reviewed-by: Daniel Henrique Barboza and queued. Thanks, Daniel On 5/30/23 10:04, Nicholas Piggin wrote: Some of the PMU hflags bits can go out of synch, for example a store to MMCR0 with PMCjCE=1 fails to update hflags correctly and results in hflags mismatch: qemu: fatal: TCG hflags

[PATCH v4] target/ppc: Fix PMU hflags calculation

2023-05-30 Thread Nicholas Piggin
Some of the PMU hflags bits can go out of synch, for example a store to MMCR0 with PMCjCE=1 fails to update hflags correctly and results in hflags mismatch: qemu: fatal: TCG hflags mismatch (current:0x2408003d rebuilt:0x240a003d) This can be reproduced by running perf on a recent machine.