Skip to content

Commit 69b3d4a

Browse files
authored
[RISC-V] JIT: Remove src/dst from CORINFO_HELP_ASSIGN_BYREF GC kill set (#111360)
* Remove t3 and t5 from RBM_CALLEE_TRASH_NOGC
1 parent c290df1 commit 69b3d4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/jit/targetriscv64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
#define REG_WRITE_BARRIER_SRC_BYREF REG_T5
140140
#define RBM_WRITE_BARRIER_SRC_BYREF RBM_T5
141141

142-
#define RBM_CALLEE_TRASH_NOGC (RBM_T0|RBM_T1|RBM_T2|RBM_T3|RBM_T4|RBM_T5|RBM_T6|RBM_DEFAULT_HELPER_CALL_TARGET)
142+
#define RBM_CALLEE_TRASH_NOGC (RBM_T0|RBM_T1|RBM_T2|RBM_T4|RBM_T6|RBM_DEFAULT_HELPER_CALL_TARGET)
143143

144144
// Registers killed by CORINFO_HELP_ASSIGN_REF and CORINFO_HELP_CHECKED_ASSIGN_REF.
145145
#define RBM_CALLEE_TRASH_WRITEBARRIER (RBM_WRITE_BARRIER_DST|RBM_CALLEE_TRASH_NOGC)
@@ -151,7 +151,7 @@
151151
#define RBM_CALLEE_TRASH_WRITEBARRIER_BYREF (RBM_WRITE_BARRIER_DST_BYREF | RBM_WRITE_BARRIER_SRC_BYREF | RBM_CALLEE_TRASH_NOGC)
152152

153153
// Registers no longer containing GC pointers after CORINFO_HELP_ASSIGN_BYREF.
154-
// Note that x13 and x14 are still valid byref pointers after this helper call, despite their value being changed.
154+
// Note that t3 and t5 are still valid byref pointers after this helper call, despite their value being changed.
155155
#define RBM_CALLEE_GCTRASH_WRITEBARRIER_BYREF RBM_CALLEE_TRASH_NOGC
156156

157157
// GenericPInvokeCalliHelper VASigCookie Parameter

0 commit comments

Comments
 (0)