Skip to content

Commit

Permalink
Add haveCLoadTags config
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterRugg committed Sep 4, 2024
1 parent 7f6eade commit 8620211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cheri_insts.sail
Original file line number Diff line number Diff line change
Expand Up @@ -2371,7 +2371,7 @@ mapping clause encdec = JALR_CAP(cd, cs1) if (haveXcheri()) <-> 0b1111111 @ 0b
mapping clause encdec = CSealEntry(cd, cs1) if (haveXcheri()) <-> 0b1111111 @ 0b10001 @ cs1 @ 0b000 @ cd @ 0b1011011 if (haveXcheri())
mapping clause encdec = JALR_PCC(rd, rs1) if (haveXcheri()) <-> 0b1111111 @ 0b10100 @ rs1 @ 0b000 @ rd @ 0b1011011 if (haveXcheri())

mapping clause encdec = CLoadTags(rd, cs1) if (haveXcheri()) <-> 0b1111111 @ 0b10010 @ cs1 @ 0b000 @ rd @ 0b1011011 if (haveXcheri())
mapping clause encdec = CLoadTags(rd, cs1) if (haveXcheri() & haveCLoadTags()) <-> 0b1111111 @ 0b10010 @ cs1 @ 0b000 @ rd @ 0b1011011 if (haveXcheri() & haveCLoadTags())

mapping clause encdec = CRRL(rd, rs1) if (haveXcheri()) <-> 0b1111111 @ 0b01000 @ rs1 @ 0b000 @ rd @ 0b1011011 if (haveXcheri())
mapping clause encdec = CRAM(rd, rs1) if (haveXcheri()) <-> 0b1111111 @ 0b01001 @ rs1 @ 0b000 @ rd @ 0b1011011 if (haveXcheri())
Expand Down
2 changes: 2 additions & 0 deletions src/cheri_sys_regs.sail
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ function haveXcheri () -> bool =
/* This is a necessary but not sufficient condition, but should do for now. */
misa.X() == 0b1

function haveCLoadTags () -> bool = false


function legalize_tcc(o : Capability, v : Capability) -> Capability = {
new_base = getCapBaseBits(v);
Expand Down

0 comments on commit 8620211

Please sign in to comment.