From f55289b7c1d5fc4250a34b50bb75e0be225fd96a Mon Sep 17 00:00:00 2001 From: Afonso Oliveira Date: Wed, 21 Aug 2024 09:20:08 +0100 Subject: [PATCH] Zicntr was inside Zicsr file Signed-off-by: Afonso Oliveira --- rv32_zicntr | 4 ++++ rv_zicntr | 5 +++++ rv_zicsr | 6 ------ 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 rv32_zicntr create mode 100644 rv_zicntr diff --git a/rv32_zicntr b/rv32_zicntr new file mode 100644 index 00000000..2744bb29 --- /dev/null +++ b/rv32_zicntr @@ -0,0 +1,4 @@ +$pseudo_op rv_zicsr::csrrs rdcycleh rd 19..15=0 31..20=0xC80 14..12=2 6..2=0x1C 1..0=3 +$pseudo_op rv_zicsr::csrrs rdtimeh rd 19..15=0 31..20=0xC81 14..12=2 6..2=0x1C 1..0=3 +$pseudo_op rv_zicsr::csrrs rdinstreth rd 19..15=0 31..20=0xC82 14..12=2 6..2=0x1C 1..0=3 + diff --git a/rv_zicntr b/rv_zicntr new file mode 100644 index 00000000..deecaa0a --- /dev/null +++ b/rv_zicntr @@ -0,0 +1,5 @@ +#rv_zicntr instructions +$pseudo_op rv_zicsr::csrrs rdcycle rd 19..15=0 31..20=0xC00 14..12=2 6..2=0x1C 1..0=3 +$pseudo_op rv_zicsr::csrrs rdtime rd 19..15=0 31..20=0xC01 14..12=2 6..2=0x1C 1..0=3 +$pseudo_op rv_zicsr::csrrs rdinstret rd 19..15=0 31..20=0xC02 14..12=2 6..2=0x1C 1..0=3 + diff --git a/rv_zicsr b/rv_zicsr index c58b5bd7..a1e694d9 100644 --- a/rv_zicsr +++ b/rv_zicsr @@ -13,11 +13,5 @@ $pseudo_op rv_zicsr::csrrw fsrm rd rs1 31..20=0x002 14..12=1 6..2=0x $pseudo_op rv_zicsr::csrrwi fsrmi rd zimm 31..20=0x002 14..12=5 6..2=0x1C 1..0=3 $pseudo_op rv_zicsr::csrrw fscsr rd rs1 31..20=0x003 14..12=1 6..2=0x1C 1..0=3 $pseudo_op rv_zicsr::csrrs frcsr rd 19..15=0 31..20=0x003 14..12=2 6..2=0x1C 1..0=3 -$pseudo_op rv_zicsr::csrrs rdcycle rd 19..15=0 31..20=0xC00 14..12=2 6..2=0x1C 1..0=3 -$pseudo_op rv_zicsr::csrrs rdtime rd 19..15=0 31..20=0xC01 14..12=2 6..2=0x1C 1..0=3 -$pseudo_op rv_zicsr::csrrs rdinstret rd 19..15=0 31..20=0xC02 14..12=2 6..2=0x1C 1..0=3 -$pseudo_op rv_zicsr::csrrs rdcycleh rd 19..15=0 31..20=0xC80 14..12=2 6..2=0x1C 1..0=3 -$pseudo_op rv_zicsr::csrrs rdtimeh rd 19..15=0 31..20=0xC81 14..12=2 6..2=0x1C 1..0=3 -$pseudo_op rv_zicsr::csrrs rdinstreth rd 19..15=0 31..20=0xC82 14..12=2 6..2=0x1C 1..0=3