aboutsummaryrefslogtreecommitdiff
path: root/parse-opcodes
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-07-28 02:21:21 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-07-28 02:21:21 -0700
commitc6385bd93a7549b597f13eb7d9d707393f5a12a2 (patch)
treecdc10c4a7820c613bd54887dcada2a3dea75ff06 /parse-opcodes
parent436835918e6801522f4b201b7304399e0714c6af (diff)
downloadriscv-opcodes-c6385bd93a7549b597f13eb7d9d707393f5a12a2.zip
riscv-opcodes-c6385bd93a7549b597f13eb7d9d707393f5a12a2.tar.gz
riscv-opcodes-c6385bd93a7549b597f13eb7d9d707393f5a12a2.tar.bz2
Fix DECLARE_CAUSE macros
Diffstat (limited to 'parse-opcodes')
-rwxr-xr-xparse-opcodes2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-opcodes b/parse-opcodes
index 8650acf..b6a2430 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -182,7 +182,7 @@ def make_c(match,mask):
print '#endif'
print '#ifdef DECLARE_CAUSE'
- for num, name in csrs+csrs32:
+ for num, name in causes:
print 'DECLARE_CAUSE("%s", CAUSE_%s)' % (name, name.upper().replace(' ', '_'))
print '#endif'