From 89daf14d5b338c2d603a76477dfdbe8211b5aac0 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 18 Mar 2014 14:39:07 -0700 Subject: Add rdcycleh etc. for RV32 --- opcodes-pseudo | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'opcodes-pseudo') diff --git a/opcodes-pseudo b/opcodes-pseudo index ba28d72..4171e7e 100644 --- a/opcodes-pseudo +++ b/opcodes-pseudo @@ -4,14 +4,17 @@ @srai.rv32 rd rs1 31..25=32 shamtw 14..12=5 6..2=0x04 1..0=3 # SYSTEM pseudo-instructions that map to csr* -@frflags rd 19..15=0 31..20=0x001 14..12=2 6..2=0x1C 1..0=3 -@fsflags rd rs1 31..20=0x001 14..12=1 6..2=0x1C 1..0=3 -@fsflagsi rd zimm 31..20=0x001 14..12=5 6..2=0x1C 1..0=3 -@frrm rd 19..15=0 31..20=0x002 14..12=2 6..2=0x1C 1..0=3 -@fsrm rd rs1 31..20=0x002 14..12=1 6..2=0x1C 1..0=3 -@fsrmi rd zimm 31..20=0x002 14..12=5 6..2=0x1C 1..0=3 -@fscsr rd rs1 31..20=0x003 14..12=1 6..2=0x1C 1..0=3 -@frcsr rd 19..15=0 31..20=0x003 14..12=2 6..2=0x1C 1..0=3 -@rdcycle rd 19..15=0 31..20=0xC00 14..12=2 6..2=0x1C 1..0=3 -@rdtime rd 19..15=0 31..20=0xC01 14..12=2 6..2=0x1C 1..0=3 -@rdinstret rd 19..15=0 31..20=0xC02 14..12=2 6..2=0x1C 1..0=3 +@frflags rd 19..15=0 31..20=0x001 14..12=2 6..2=0x1C 1..0=3 +@fsflags rd rs1 31..20=0x001 14..12=1 6..2=0x1C 1..0=3 +@fsflagsi rd zimm 31..20=0x001 14..12=5 6..2=0x1C 1..0=3 +@frrm rd 19..15=0 31..20=0x002 14..12=2 6..2=0x1C 1..0=3 +@fsrm rd rs1 31..20=0x002 14..12=1 6..2=0x1C 1..0=3 +@fsrmi rd zimm 31..20=0x002 14..12=5 6..2=0x1C 1..0=3 +@fscsr rd rs1 31..20=0x003 14..12=1 6..2=0x1C 1..0=3 +@frcsr rd 19..15=0 31..20=0x003 14..12=2 6..2=0x1C 1..0=3 +@rdcycle rd 19..15=0 31..20=0xC00 14..12=2 6..2=0x1C 1..0=3 +@rdtime rd 19..15=0 31..20=0xC01 14..12=2 6..2=0x1C 1..0=3 +@rdinstret rd 19..15=0 31..20=0xC02 14..12=2 6..2=0x1C 1..0=3 +@rdcycleh rd 19..15=0 31..20=0xC80 14..12=2 6..2=0x1C 1..0=3 +@rdtimeh rd 19..15=0 31..20=0xC81 14..12=2 6..2=0x1C 1..0=3 +@rdinstreth rd 19..15=0 31..20=0xC82 14..12=2 6..2=0x1C 1..0=3 -- cgit v1.1