|
| From: | Richard Henderson |
| Subject: | Re: [PATCH v2 08/11] target/openrisc: Enable MTTCG |
| Date: | Mon, 4 Jul 2022 15:37:04 +0530 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
On 7/4/22 02:58, Stafford Horne wrote:
case TO_SPR(10, 1): /* TTCR */
- cpu_openrisc_count_update(cpu);
+ if (cpu_openrisc_timer_has_advanced(cpu)) {
+ qemu_mutex_lock_iothread();
+ cpu_openrisc_count_update(cpu);
+ qemu_mutex_unlock_iothread();
+ }
Lock around the whole if, I think. Otherwise looks good. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
| [Prev in Thread] | Current Thread | [Next in Thread] |