include: Remove ilen member of struct unpriv_trap

We simplify struct unpriv_trap by removing ilen member. This
can be achieved by ensuring that at all unpriv load/store
instructions are 4 bytes long using GCC assembler option.

Additionally, this also reduces few instructions from unpriv
load/store functions.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
Anup Patel
2019-11-16 16:08:27 +05:30
committed by Anup Patel
parent 215421ca61
commit 838657c052
3 changed files with 32 additions and 21 deletions

View File

@@ -15,7 +15,6 @@
struct sbi_scratch;
struct unpriv_trap {
unsigned long ilen;
unsigned long cause;
unsigned long tval;
};