blob: 7aee38655c5c8c3b657d4b1802884b1bf6ac9749 [file] [log] [blame]
Douglas Leung200f0402016-02-25 20:05:47 -08001 /*
2 * 64-bit SGET handler.
3 */
4 # sget-wide vAA, field /* BBBB */
5 .extern artGet64StaticFromCode
6 EXPORT_PC()
7 FETCH(a0, 1) # a0 <- field ref BBBB
8 lw a1, OFF_FP_METHOD(rFP) # a1 <- method
9 move a2, rSELF # a2 <- self
10 JAL(artGet64StaticFromCode)
11 lw a3, THREAD_EXCEPTION_OFFSET(rSELF)
12 bnez a3, MterpException
13 GET_OPA(a1) # a1 <- AA
14 FETCH_ADVANCE_INST(2) # advance rPC, load rINST
15 SET_VREG64(v0, v1, a1) # vAA/vAA+1 <- v0/v1
16 GET_INST_OPCODE(t0) # extract opcode from rINST
17 GOTO_OPCODE(t0) # jump to next instruction