Skip to content

Commit 1f632b2

Browse files
authored
fixes frame layout calculation in the Primus loader (#1329)
It should be using the address size everywhere (instead it was using the number of bits in the architecture, which is 8 for AVR8).
1 parent 8e1cb72 commit 1f632b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/primus_loader/primus_loader_basic.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module Make(Param : Param)(Machine : Primus.Machine.S) = struct
2222
module Val = Primus.Value.Make(Machine)
2323

2424
let make_word addr =
25-
Machine.gets Project.target >>| Theory.Target.bits >>| fun width ->
25+
Machine.gets Project.target >>|
26+
Theory.Target.code_addr_size >>| fun width ->
2627
Addr.of_int64 ~width addr
2728

2829
let set_word name x =

0 commit comments

Comments
 (0)