mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 23:09:18 +02:00
* RiscV: generate mret only for FreeRTOS and Embedded
This commit is contained in:
parent
0e8d87bc26
commit
e66378ee59
@ -690,7 +690,7 @@ unit cgrv;
|
|||||||
list.concat(taicpu.op_reg_reg_const(A_ADDI,NR_STACK_POINTER_REG,NR_STACK_POINTER_REG,postcompensation));
|
list.concat(taicpu.op_reg_reg_const(A_ADDI,NR_STACK_POINTER_REG,NR_STACK_POINTER_REG,postcompensation));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if po_interrupt in current_procinfo.procdef.procoptions then
|
if (target_info.system in (systems_freertos+systems_embedded)) and (po_interrupt in current_procinfo.procdef.procoptions) then
|
||||||
begin
|
begin
|
||||||
list.concat(Taicpu.Op_none(A_MRET));
|
list.concat(Taicpu.Op_none(A_MRET));
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user