Recent

Author Topic: [SOLVED] in globals.pas set to MIPS2, how to change?  (Read 478 times)

Key-Real

  • Sr. Member
  • ****
  • Posts: 372
[SOLVED] in globals.pas set to MIPS2, how to change?
« on: July 11, 2024, 08:51:56 pm »
in globals.pas under
Code: Pascal  [Select][+][-]
  1. const
  2.       default_settings : TSettings = (
  3.       .....
  4.  

it is set to:

Code: Pascal  [Select][+][-]
  1. {$ifdef mips}
  2.   {$ifdef mips64}
  3.         cputype : cpu_mips3;
  4.         optimizecputype : cpu_mips3;
  5.         asmcputype : cpu_none;
  6.         fputype : fpu_mips3;
  7.   {$else mips64}
  8.         cputype : cpu_mips2;                                    <-----
  9.         optimizecputype : cpu_mips2;                       <-----
  10.         asmcputype : cpu_none;
  11.         fputype : fpu_mips2;                                      <-----
  12.   {$endif mips64}
  13.   {$endif mips}
  14.  

if i do in options.pas:
Code: Pascal  [Select][+][-]
  1. case target_info.system of
  2. .....
  3. system_mipsel_PS1:
  4.       begin
  5.         { set default cpu type to MIPS1 with no FPU }
  6.         if not option.CPUSetExplicitly then
  7.           init_settings.cputype:=cpu_mips1;
  8.         if not option.OptCPUSetExplicitly then
  9.           init_settings.optimizecputype:=cpu_mips1;
  10.         if not option.FPUSetExplicitly then
  11.           init_settings.fputype:=fpu_none;
  12.       end;
  13.  

he is not changing the AsmWriter only if i hard code MIPS1 in globals.pas

what to do?
« Last Edit: July 15, 2024, 11:07:59 am by Key-Real »

Key-Real

  • Sr. Member
  • ****
  • Posts: 372
Re: in globals.pas set to MIPS2, how to change?
« Reply #1 on: July 15, 2024, 11:07:45 am »
sorry my fault,

it works this way

 

TinyPortal © 2005-2018