History

Address of solved for riscv64

A character size load was used instead of pointer size some times.

herman ten brugge committed 2 years ago

Commit 8cd21e91 parent da5aa7d1 file · +1 −1Browse files

Unified · Split

riscv64-gen.c+1−1
@@ -239,7 +239,7 @@ ST_FUNC void load(int r, SValue *sv) · 238 unmodified lines
239239 int func3, opcode = is_freg(r) ? 0x07 : 0x03, br;
240240 size = type_size(&sv->type, &align);
241241 assert (!is_freg(r) || bt == VT_FLOAT || bt == VT_DOUBLE);
242− if (bt == VT_FUNC) /* XXX should be done in generic code */
242+ if (bt == VT_PTR || bt == VT_FUNC) /* XXX should be done in generic code */
243243 size = PTR_SIZE;
244244 func3 = size == 1 ? 0 : size == 2 ? 1 : size == 4 ? 2 : 3;
245245 if (size < 4 && !is_float(sv->type.t) && (sv->type.t & VT_UNSIGNED))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t