summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-01-11 13:55:38 +0300
committerAnup Patel <anup@brainfault.org>2021-01-15 08:10:29 +0300
commite884416650c46c69c41f83235407dc840cfc9c3f (patch)
treed22db07a50255a59b180ed2d2f910241735097f5
parentdb56341dfa1f89e258921d260449eb5edee922c4 (diff)
downloadopensbi-e884416650c46c69c41f83235407dc840cfc9c3f.tar.xz
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>
-rw-r--r--include/sbi/sbi_trap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/sbi_trap.h b/include/sbi/sbi_trap.h
index 04001df..5fb94f9 100644
--- a/include/sbi/sbi_trap.h
+++ b/include/sbi/sbi_trap.h
@@ -186,7 +186,7 @@ struct sbi_trap_regs {
unsigned long mstatus;
/** mstatusH register state (only for 32-bit) */
unsigned long mstatusH;
-} __packed;
+};
/** Representation of trap details */
struct sbi_trap_info {