aboutsummaryrefslogtreecommitdiffstats
path: root/translate/grt/ghwlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'translate/grt/ghwlib.c')
-rw-r--r--translate/grt/ghwlib.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/translate/grt/ghwlib.c b/translate/grt/ghwlib.c
index 984729246..e9b23e73b 100644
--- a/translate/grt/ghwlib.c
+++ b/translate/grt/ghwlib.c
@@ -225,6 +225,18 @@ ghw_read_range (struct ghw_handler *h)
return NULL;
switch (t & 0x7f)
{
+ case ghdl_rtik_type_b2:
+ {
+ struct ghw_range_b2 *r;
+ r = malloc (sizeof (struct ghw_range_b2));
+ r->kind = t & 0x7f;
+ r->dir = (t & 0x80) != 0;
+ if (ghw_read_byte (h, &r->left) != 0)
+ return NULL;
+ if (ghw_read_byte (h, &r->right) != 0)
+ return NULL;
+ return (union ghw_range *)r;
+ }
case ghdl_rtik_type_e8:
{
struct ghw_range_e8 *r;