target/s390x/tcg: Use vaddr in s390_probe_access()
Commit70ebd9ce1c("s390x/tcg: Fault-safe memset") passed vaddr type to access_prepare(), and commitb6c636f2cd("s390x/tcg: Fault-safe memmove") to do_access_get_byte(), but declared S390Access::vaddr[1,2] as target_ulong. Directly declare these as vaddr type, and have s390_probe_access() use that type as argument. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20250707171059.3064-3-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
0492c8929f
commit
79d7e60c32
1 changed files with 5 additions and 5 deletions
|
|
@ -126,8 +126,8 @@ static inline void cpu_stsize_data_ra(CPUS390XState *env, uint64_t addr,
|
|||
|
||||
/* An access covers at most 4096 bytes and therefore at most two pages. */
|
||||
typedef struct S390Access {
|
||||
target_ulong vaddr1;
|
||||
target_ulong vaddr2;
|
||||
vaddr vaddr1;
|
||||
vaddr vaddr2;
|
||||
void *haddr1;
|
||||
void *haddr2;
|
||||
uint16_t size1;
|
||||
|
|
@ -148,7 +148,7 @@ typedef struct S390Access {
|
|||
* For !CONFIG_USER_ONLY, the TEC is stored stored to env->tlb_fill_tec.
|
||||
* For CONFIG_USER_ONLY, the faulting address is stored to env->__excp_addr.
|
||||
*/
|
||||
static inline int s390_probe_access(CPUArchState *env, target_ulong addr,
|
||||
static inline int s390_probe_access(CPUArchState *env, vaddr addr,
|
||||
int size, MMUAccessType access_type,
|
||||
int mmu_idx, bool nonfault,
|
||||
void **phost, uintptr_t ra)
|
||||
|
|
@ -258,7 +258,7 @@ static void access_memset(CPUS390XState *env, S390Access *desta,
|
|||
static uint8_t access_get_byte(CPUS390XState *env, S390Access *access,
|
||||
int offset, uintptr_t ra)
|
||||
{
|
||||
target_ulong vaddr = access->vaddr1;
|
||||
vaddr vaddr = access->vaddr1;
|
||||
void *haddr = access->haddr1;
|
||||
|
||||
if (unlikely(offset >= access->size1)) {
|
||||
|
|
@ -278,7 +278,7 @@ static uint8_t access_get_byte(CPUS390XState *env, S390Access *access,
|
|||
static void access_set_byte(CPUS390XState *env, S390Access *access,
|
||||
int offset, uint8_t byte, uintptr_t ra)
|
||||
{
|
||||
target_ulong vaddr = access->vaddr1;
|
||||
vaddr vaddr = access->vaddr1;
|
||||
void *haddr = access->haddr1;
|
||||
|
||||
if (unlikely(offset >= access->size1)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue