diff options
author | gingold | 2005-11-22 16:09:10 +0000 |
---|---|---|
committer | gingold | 2005-11-22 16:09:10 +0000 |
commit | 171548c9d708fc13f5b6d3edde30630ee04bd06e (patch) | |
tree | 181c2a4f230ec445277ec4ed6a25c73f25aab3e2 /translate/grt/ghwlib.c | |
parent | 20e31a50417e5452dcc5797d27dc1383253e3161 (diff) | |
download | ghdl-171548c9d708fc13f5b6d3edde30630ee04bd06e.tar.gz ghdl-171548c9d708fc13f5b6d3edde30630ee04bd06e.tar.bz2 ghdl-171548c9d708fc13f5b6d3edde30630ee04bd06e.zip |
more optimizations + bug fixes
Diffstat (limited to 'translate/grt/ghwlib.c')
-rw-r--r-- | translate/grt/ghwlib.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/translate/grt/ghwlib.c b/translate/grt/ghwlib.c index 9847292..e9b23e7 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; |