aboutsummaryrefslogtreecommitdiff
path: root/model/riscv_platform.sail
diff options
context:
space:
mode:
authorThomas Bauereiss <tb592@cl.cam.ac.uk>2019-01-21 17:43:57 +0000
committerThomas Bauereiss <tb592@cl.cam.ac.uk>2019-01-21 17:43:57 +0000
commitdc9c704e4d046e7578a2dfee54812c2198d620e1 (patch)
tree2e8338bebaac337e6d4279ad0468d98541acb330 /model/riscv_platform.sail
parenta4f6aebc865a5849e9f0710715bca40e518f3bf1 (diff)
downloadsail-riscv-dc9c704e4d046e7578a2dfee54812c2198d620e1.zip
sail-riscv-dc9c704e4d046e7578a2dfee54812c2198d620e1.tar.gz
sail-riscv-dc9c704e4d046e7578a2dfee54812c2198d620e1.tar.bz2
Remove temporary workaround for Lem generation
Reverts 7df2149
Diffstat (limited to 'model/riscv_platform.sail')
-rw-r--r--model/riscv_platform.sail10
1 files changed, 5 insertions, 5 deletions
diff --git a/model/riscv_platform.sail b/model/riscv_platform.sail
index aee72e4..0749de6 100644
--- a/model/riscv_platform.sail
+++ b/model/riscv_platform.sail
@@ -112,17 +112,17 @@ function clint_load(addr, width) = {
if addr == MSIP_BASE & ('n == 8 | 'n == 4)
then {
print_platform("clint[" ^ BitStr(addr) ^ "] -> " ^ BitStr(mip.MSI()));
- MemValue(zero_extend_type_hack(mip.MSI(), sizeof(8 * 'n)))
+ MemValue(zero_extend(mip.MSI(), sizeof(8 * 'n)))
}
else if addr == MTIMECMP_BASE & ('n == 8)
then {
print_platform("clint[" ^ BitStr(addr) ^ "] -> " ^ BitStr(mtimecmp));
- MemValue(zero_extend_type_hack(mtimecmp, 64)) /* FIXME: Redundant zero_extend currently required by Lem backend */
+ MemValue(zero_extend(mtimecmp, 64)) /* FIXME: Redundant zero_extend currently required by Lem backend */
}
else if addr == MTIME_BASE & ('n == 8)
then {
print_platform("clint[" ^ BitStr(addr) ^ "] -> " ^ BitStr(mtime));
- MemValue(zero_extend_type_hack(mtime, 64))
+ MemValue(zero_extend(mtime, 64))
}
else {
print_platform("clint[" ^ BitStr(addr) ^ "] -> <not-mapped>");
@@ -194,7 +194,7 @@ function htif_load(addr, width) = {
print_platform("htif[" ^ BitStr(addr) ^ "] -> " ^ BitStr(htif_tohost));
/* FIXME: For now, only allow the expected access widths. */
if width == 8
- then MemValue(zero_extend_type_hack(htif_tohost, 64)) /* FIXME: Redundant zero_extend currently required by Lem backend */
+ then MemValue(zero_extend(htif_tohost, 64)) /* FIXME: Redundant zero_extend currently required by Lem backend */
else MemException(E_Load_Access_Fault)
}
@@ -292,4 +292,4 @@ function platform_wfi() -> unit = {
mtime = mtimecmp;
mcycle = mtimecmp;
}
-} \ No newline at end of file
+}