summaryrefslogtreecommitdiff
path: root/py/obj.c
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2025-01-24 00:20:39 +0100
committerDamien George <damien@micropython.org>2025-01-26 23:42:36 +1100
commit40585eaa8f1b603f0094b73764e8ce5623812ecf (patch)
treebb6e210d652e9184ab02720697b063b2a9f56661 /py/obj.c
parentbfc0d7b0b97cbf52db892775b0f371dd06d2ba08 (diff)
py/emitnative: Emit shorter exception handler entry code on RV32.
This commit improves the RV32 code sequence that is emitted if a function needs to set up an exception handler as its prologue. The old code would clear a temporary register and then copy that value to places that needed to be initialised with zero values. On RV32 there's a dedicated register that's hardwired to be equal to zero, which allows us to bypass the extra register clear and use the zero register to initialise values. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'py/obj.c')
0 files changed, 0 insertions, 0 deletions