mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
include: sbi: No need to pack struct sbi_trap_regs
All members in struct sbi_trap_regs are of machine word size so no need to pack this structure. This also allows GCC to generate more optimized instruction sequence when accessing members of struct sbi_trap_regs. Reported-by: Paul Campbell <taniwha@gmail.com> Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -186,7 +186,7 @@ struct sbi_trap_regs {
|
|||||||
unsigned long mstatus;
|
unsigned long mstatus;
|
||||||
/** mstatusH register state (only for 32-bit) */
|
/** mstatusH register state (only for 32-bit) */
|
||||||
unsigned long mstatusH;
|
unsigned long mstatusH;
|
||||||
} __packed;
|
};
|
||||||
|
|
||||||
/** Representation of trap details */
|
/** Representation of trap details */
|
||||||
struct sbi_trap_info {
|
struct sbi_trap_info {
|
||||||
|
Reference in New Issue
Block a user