projects
/
ulas
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44cb045
)
Fixed initializer for arch
author
Lukas Krickl
<lukas@krickl.dev>
Tue, 20 Feb 2024 16:31:25 +0000
(17:31 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Tue, 20 Feb 2024 16:31:25 +0000
(17:31 +0100)
src/archs.c
patch
|
blob
|
history
diff --git
a/src/archs.c
b/src/archs.c
index 5b28aeb0de4b24ba6feeb9170c30fe49dc3d53ff..4126c09fe2657220cbc0a5780cf333d11a9017d0 100644
(file)
--- a/
src/archs.c
+++ b/
src/archs.c
@@
-317,10
+317,8
@@
const char *ULAS_SM83_REGS[] = {
void ulas_arch_set(enum ulas_archs arch) {
switch (arch) {
case ULAS_ARCH_SM83:
- ulas.arch = (struct ulas_arch){NULL, 0, ULASINSTRS_SM83};
- ulas.arch.regs_names = ULAS_SM83_REGS;
- ulas.arch.regs_len = ULAS_SM83_REGS_LEN;
- ulas.arch.endianess = ULAS_LE;
+ ulas.arch = (struct ulas_arch){ULAS_SM83_REGS, ULAS_SM83_REGS_LEN,
+ ULASINSTRS_SM83, ULAS_LE};
break;
default:
ULASPANIC("Unknown architecture\n");