aboutsummaryrefslogtreecommitdiff
path: root/fesvr/memif.h
diff options
context:
space:
mode:
Diffstat (limited to 'fesvr/memif.h')
-rw-r--r--fesvr/memif.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fesvr/memif.h b/fesvr/memif.h
index 001c425..3f9bd2d 100644
--- a/fesvr/memif.h
+++ b/fesvr/memif.h
@@ -5,6 +5,7 @@
#include <stdint.h>
#include <stddef.h>
+#include <stdexcept>
#include "byteorder.h"
typedef uint64_t reg_t;
@@ -79,4 +80,11 @@ protected:
chunked_memif_t* cmemif;
};
+class incompat_xlen : public std::exception {
+public:
+ const unsigned expected_xlen;
+ const unsigned actual_xlen;
+ incompat_xlen(unsigned _expected_xlen, unsigned _actual_xlen) : expected_xlen(_expected_xlen), actual_xlen(_actual_xlen) {}
+};
+
#endif // __MEMIF_H