summaryrefslogtreecommitdiffstats
path: root/tpu.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-07-25 02:52:33 +0200
committerLouis Burda <quent.burda@gmail.com>2023-07-25 02:52:33 +0200
commitc1e767700fc14fbe385a9a8d9ad0cfa4d5315c35 (patch)
tree41a8b648e48ca58f9edb67ebeda5cd82a0519f6a /tpu.h
parentd07257c9e92e8697915aaf40070c6228a5855104 (diff)
downloadtis100-c1e767700fc14fbe385a9a8d9ad0cfa4d5315c35.tar.gz
tis100-c1e767700fc14fbe385a9a8d9ad0cfa4d5315c35.zip
Add label support to curses source view
Diffstat (limited to 'tpu.h')
-rw-r--r--tpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tpu.h b/tpu.h
index 1fcb8d9..12dcb07 100644
--- a/tpu.h
+++ b/tpu.h
@@ -46,6 +46,7 @@ struct label_map_link {
};
struct label_map {
+ char *labels[TPU_MAX_INST]; /* borrowed from label_map_links */
struct label_map_link *buckets[LABEL_MAP_BUCKETS];
};
@@ -83,7 +84,7 @@ struct tpu {
uint8_t acc, bak;
uint8_t pc;
- struct label_map labels;
+ struct label_map label_map;
struct tpu_inst insts[TPU_MAX_INST];
size_t inst_cnt;
};