Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix future clause warnings introduced by upcoming sail release #689

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 11 additions & 18 deletions model/riscv_insts_end.sail
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,27 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*=======================================================================================*/

/* Put the illegal instructions last to use their wildcard match. */
/* End scattered definitions and default to illegal instructions if no match */

/* ****************************************************************** */

mapping clause encdec = ILLEGAL(s) <-> s

function clause execute (ILLEGAL(s)) = { handle_illegal(); RETIRE_FAIL }
end ast

mapping clause assembly = ILLEGAL(s) <-> "illegal" ^ spc() ^ hex_bits_32(s)
function clause extensionEnabled(_) = false
end extensionEnabled
end extension

/* ****************************************************************** */
mapping clause encdec = ILLEGAL(s) <-> s
end encdec

mapping clause encdec_compressed = C_ILLEGAL(s) <-> s
end encdec_compressed

function clause execute ILLEGAL(s) = { handle_illegal(); RETIRE_FAIL }
function clause execute C_ILLEGAL(s) = { handle_illegal(); RETIRE_FAIL }
end execute

mapping clause assembly = ILLEGAL(s) <-> "illegal" ^ spc() ^ hex_bits_32(s)
mapping clause assembly = C_ILLEGAL(s) <-> "c.illegal" ^ spc() ^ hex_bits_16(s)

/* ****************************************************************** */

/* End definitions */
end extension
end extensionEnabled
end ast
end execute
end assembly
end encdec
end encdec_compressed

val print_insn : ast -> string
function print_insn insn = assembly(insn)
Expand Down
Loading