RISC-V: reduce mcount save space on RV32
authorJamie Iles <jamie@jamieiles.com>
Tue, 15 Nov 2022 20:08:30 +0000 (20:08 +0000)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 2 Dec 2022 18:04:36 +0000 (10:04 -0800)
commit3bd7743f8d6d7171db9897a746038eefd52a1fbd
treed97eaaebb148a38ef8900c4a1a58f0177c667ad4
parent8a6841c439dfbba2067a533b0e8264ea438689f6
RISC-V: reduce mcount save space on RV32

For RV32 we can reduce the size of the ABI save+restore state by using
SZREG so that register stores are packed rather than on an 8 byte
boundary.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20221115200832.706370-3-jamie@jamieiles.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/mcount.S