gensoc/cpuif: do not generate access functions for registers > 64 bits
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 2 Aug 2014 14:42:26 +0000 (16:42 +0200)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Mon, 4 Aug 2014 14:38:19 +0000 (22:38 +0800)
misoclib/gensoc/cpuif.py

index 2646711d8eea19428e471105d0132e4927cd6074..994f9ddb3a337e4acb4795b1d0125c0db2143adb 100644 (file)
@@ -37,7 +37,7 @@ def _get_rw_functions(reg_name, reg_base, nwords, busword, read_only):
 
        size = nwords*busword
        if size > 64:
-               raise NotImplementedError("Register too large")
+               return r
        elif size > 32:
                ctype = "unsigned long long int"
        elif size > 16: