Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sub_opcode for STO instruction (GCC-336) #2

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gas/config/tc-esp32s2ulp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ INSTR_T esp32s2ulp_wr_mem_sti(int dst_reg, int src_reg)
INSTR_T esp32s2ulp_wr_mem_offset(Expr_Node* offset)
{
int addr_val = EXPR_VALUE(offset);
unsigned int local_op = WR_MEM(0, 0, addr_val >> 2, 0, 0, 0, 0x2);
unsigned int local_op = WR_MEM(0, 0, addr_val >> 2, 0, 0, 0, 0x3);

return conscode(gencode(local_op), Expr_Node_Gen_Reloc(offset, BFD_RELOC_ESP32S2ULP_WR_MEM));
}
Expand Down
2 changes: 1 addition & 1 deletion gas/config/tc-esp32ulp_esp32s2.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ INSTR_T esp32ulp_wr_mem_sti_esp32s2(int dst_reg, int src_reg)
INSTR_T esp32ulp_wr_mem_sto_esp32s2(Expr_Node* offset)
{
int addr_val = EXPR_VALUE(offset);
unsigned int local_op = WR_MEM(0, 0, addr_val >> 2, 0, 0, 0, 0x2);
unsigned int local_op = WR_MEM(0, 0, addr_val >> 2, 0, 0, 0, 0x3);

return conscode(gencode(local_op), Expr_Node_Gen_Reloc(offset, BFD_RELOC_ESP32S2ULP_WR_MEM));
}
Expand Down