Skip to content

Commit 792728e

Browse files
authored
Merge pull request #341 from dcamarmas/master
blez pseudoinstruction definition fixed
2 parents f04d9da + b87af6e commit 792728e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

architecture/RISCV/RV32IMFD.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version: 2.0.0
77
config:
88
name: RV32
99
word_size: 32
10+
byte_size: 8
1011
description: RISC-V is an instruction set architecture (ISA) based on the RISC type and its hardware is free. This architecture was created in 2010 at the University of California, Berkeley.
1112
endianness: big_endian
1213
memory_alignment: true
@@ -16,7 +17,6 @@ config:
1617
comment_prefix: "#"
1718
start_address: 0x0
1819
pc_offset: -4
19-
byte_size: 8
2020
plugin: riscv
2121
assemblers:
2222
- name: CreatorAssembler
@@ -3835,7 +3835,7 @@ pseudoinstructions:
38353835
- field: off
38363836
type: offset_bytes
38373837
definition: |
3838-
ble x0, rs1, off;
3838+
bge x0, rs1, off;
38393839
38403840
- name: bltz
38413841
fields:

architecture/RISCV/RV64IMFD.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3866,7 +3866,7 @@ pseudoinstructions:
38663866
- field: off
38673867
type: offset_bytes
38683868
definition: |
3869-
ble x0, rs1, off;
3869+
bge x0, rs1, off;
38703870
38713871
- name: bltz
38723872
fields:

src/core/core.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export let ENDIANNESSARR = [];
8888
/** @type {import("./core.d.ts").RegisterBank[]} */
8989
export let REGISTERS;
9090
export let REGISTERS_BACKUP = [];
91-
export const register_size_bits = 64; //TODO: load from architecture
91+
export const register_size_bits = 32; //TODO: load from architecture
9292
/** @type {Memory} */
9393
export let main_memory;
9494
/** @type {StackTracker} */

0 commit comments

Comments
 (0)