Home
last modified time | relevance | path

Searched refs:kXRegSize (Results 1 – 1 of 1) sorted by relevance

/frameworks/libs/binary_translation/guest_os_primitives/riscv64/
Dguest_setjmp.cc88 constexpr size_t kXRegSize = sizeof(state->cpu.x[0]); in SaveRegsToJumpBuf() local
92 memcpy(buf + kJmpBufRaWord, state->cpu.x + RA, 3 * kXRegSize); in SaveRegsToJumpBuf()
95 memcpy(buf + kJmpBufCoreBaseWord, state->cpu.x + S0, 2 * kXRegSize); in SaveRegsToJumpBuf()
97 memcpy(buf + kJmpBufCoreBaseWord + 2, state->cpu.x + S2, 10 * kXRegSize); in SaveRegsToJumpBuf()
128 constexpr size_t kXRegSize = sizeof(state->cpu.x[0]); in RestoreRegsFromJumpBuf() local
132 memcpy(state->cpu.x + RA, buf + kJmpBufRaWord, 3 * kXRegSize); in RestoreRegsFromJumpBuf()
135 memcpy(state->cpu.x + S0, buf + kJmpBufCoreBaseWord, 2 * kXRegSize); in RestoreRegsFromJumpBuf()
137 memcpy(state->cpu.x + S2, buf + kJmpBufCoreBaseWord + 2, 10 * kXRegSize); in RestoreRegsFromJumpBuf()