fix(xtensa): use LBEG/LCOUNT names in zol macros

This commit is contained in:
Konstantin Kondrashov
2026-05-01 13:10:48 +03:00
parent 15540b39f7
commit 857670698d
@@ -16,7 +16,6 @@
#if __XTENSA__ #if __XTENSA__
#include "xtensa/config/core-isa.h" #include "xtensa/config/core-isa.h"
#include "xtensa/config/xt_specreg.h"
/** /**
* Adjust loop counter and return address for exceptions at LEND. * Adjust loop counter and return address for exceptions at LEND.
@@ -37,13 +36,13 @@
*/ */
.macro XT_ZOL_EPC_LCOUNT_RESTORE epc_reg tmp_reg .macro XT_ZOL_EPC_LCOUNT_RESTORE epc_reg tmp_reg
#if XCHAL_HAVE_LOOPS #if XCHAL_HAVE_LOOPS
rsr \tmp_reg, XT_REG_LEND rsr \tmp_reg, LEND
bne \epc_reg, \tmp_reg, 1f bne \epc_reg, \tmp_reg, 1f
rsr \tmp_reg, XT_REG_LCOUNT rsr \tmp_reg, LCOUNT
beqz \tmp_reg, 1f beqz \tmp_reg, 1f
addi \tmp_reg, \tmp_reg, -1 addi \tmp_reg, \tmp_reg, -1
wsr \tmp_reg, XT_REG_LCOUNT wsr \tmp_reg, LCOUNT
rsr \epc_reg, XT_REG_LBEG rsr \epc_reg, LBEG
1: 1:
#endif #endif
.endm .endm