]> xenbits.xensource.com Git - qemu-xen.git/commit
target/ppc: Ensure stcx size matches larx
authorNicholas Piggin <npiggin@gmail.com>
Mon, 5 Jun 2023 02:54:43 +0000 (12:54 +1000)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Sat, 10 Jun 2023 13:19:24 +0000 (10:19 -0300)
commit392d328abe7534a6e852151740913e2cd50426bc
tree3463b632508105e414561b71a2c51257e8ffd01c
parente025e8f5a8a7e32409bb4c7c509d752486113188
target/ppc: Ensure stcx size matches larx

Differently-sized larx/stcx. pairs can succeed if the starting address
matches. Add a check to require the size of stcx. exactly match the larx
that established the reservation. Use the term "reserve_length" for this
state, which matches the terminology used in the ISA.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20230605025445.161932-2-npiggin@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu.h
target/ppc/cpu_init.c
target/ppc/translate.c