From: Luke Kenneth Casson Leighton Date: Sun, 30 Sep 2018 09:37:05 +0000 (+0100) Subject: list of instructions to avoid parallelising X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=335ce9f3034cd844d428ce231cabd3c9d29b5edc;p=riscv-isa-sim.git list of instructions to avoid parallelising --- diff --git a/id_regs.py b/id_regs.py index e897d63..b705ec7 100644 --- a/id_regs.py +++ b/id_regs.py @@ -55,9 +55,11 @@ allints = intpatterns + cintpatterns[2:] skip = '#define USING_NOREGS\n' \ '#define REGS_PATTERN 0x0\n' def find_registers(fname): - # HACK! macro-skipping csr* instructions too painful - if 'csr' in fname or 'lui' in fname: - return skip + # HACK! macro-skipping of instructions too painful + for notparallel in ['csr', 'lui', 'c_j', 'wfi', 'auipc', + 'dret', 'uret', 'mret', 'sret']: + if notparallel in fname: + return skip res = [] isintfloat = 0x0 + floatmask << len(allints) with open(fname) as f: