blob: 0be27a94a4cc1d16cba37f9ac34cd38ddf258437 (
plain)
1
2
3
4
5
6
7
8
|
require_extension('C');
if (xlen == 32) {
require_extension('F');
require_fp;
WRITE_RVC_FRS2S(MMU.load_int32(RVC_RS1S + insn.rvc_lw_imm()));
} else { // c.ld
WRITE_RVC_RS2S(MMU.load_int64(RVC_RS1S + insn.rvc_ld_imm()));
}
|