From f3100b986e564b5ba39a7170b1d7a1ae2b7cdf07 Mon Sep 17 00:00:00 2001 From: Oleksii Kurochko Date: Tue, 1 Sep 2026 09:57:13 +0200 Subject: [PATCH] xen/riscv: drop pregs from struct cpu_user_regs As nothing is using pregs in upstream or downstream ports of RISC-V drop it from struct cpu_user_regs. Once it will really be needed re-introduce it. Signed-off-by: Oleksii Kurochko Reviewed-by: Baptiste Le Duc Acked-by: Jan Beulich --- xen/arch/riscv/include/asm/processor.h | 2 -- xen/arch/riscv/riscv64/asm-offsets.c | 1 - 2 files changed, 3 deletions(-) diff --git a/xen/arch/riscv/include/asm/processor.h b/xen/arch/riscv/include/asm/processor.h index 6b89df4a2d..b1745c1071 100644 --- a/xen/arch/riscv/include/asm/processor.h +++ b/xen/arch/riscv/include/asm/processor.h @@ -50,8 +50,6 @@ struct cpu_user_regs unsigned long sepc; unsigned long sstatus; unsigned long hstatus; - /* pointer to previous stack_cpu_regs */ - unsigned long pregs; }; /* TODO: need to implement */ diff --git a/xen/arch/riscv/riscv64/asm-offsets.c b/xen/arch/riscv/riscv64/asm-offsets.c index 472cced4f8..1290b9dbbe 100644 --- a/xen/arch/riscv/riscv64/asm-offsets.c +++ b/xen/arch/riscv/riscv64/asm-offsets.c @@ -50,7 +50,6 @@ void asm_offsets(void) OFFSET(CPU_USER_REGS_SEPC, struct cpu_user_regs, sepc); OFFSET(CPU_USER_REGS_SSTATUS, struct cpu_user_regs, sstatus); OFFSET(CPU_USER_REGS_HSTATUS, struct cpu_user_regs, hstatus); - OFFSET(CPU_USER_REGS_PREGS, struct cpu_user_regs, pregs); BLANK(); DEFINE(PCPU_INFO_SIZE, sizeof(struct pcpu_info)); BLANK();