mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
9d4f36166d
This regenerates sim files. Tested with the following tools from a recent binutils build in sim-site-config.exp, plus a few cross compilers. set AS_FOR_TARGET_AARCH64 "/home/alan/build/gas/aarch64-linux-gnu/gas/as-new" set LD_FOR_TARGET_AARCH64 "/home/alan/build/gas/aarch64-linux-gnu/ld/ld-new" set CC_FOR_TARGET_AARCH64 "aarch64-linux-gnu-gcc" set AS_FOR_TARGET_ARM "/home/alan/build/gas/arm-linux-gnueabi/gas/as-new" set LD_FOR_TARGET_ARM "/home/alan/build/gas/arm-linux-gnueabi/ld/ld-new" set CC_FOR_TARGET_ARM "arm-linux-gnueabi-gcc" set AS_FOR_TARGET_AVR "/home/alan/build/gas/avr-elf/gas/as-new" set LD_FOR_TARGET_AVR "/home/alan/build/gas/avr-elf/ld/ld-new" set CC_FOR_TARGET_AVR "" set AS_FOR_TARGET_BFIN "/home/alan/build/gas/bfin-elf/gas/as-new" set LD_FOR_TARGET_BFIN "/home/alan/build/gas/bfin-elf/ld/ld-new" set CC_FOR_TARGET_BFIN "" set AS_FOR_TARGET_BPF "/home/alan/build/gas/bpf-none/gas/as-new" set LD_FOR_TARGET_BPF "/home/alan/build/gas/bpf-none/ld/ld-new" set CC_FOR_TARGET_BPF "" set AS_FOR_TARGET_CR16 "/home/alan/build/gas/cr16-elf/gas/as-new" set LD_FOR_TARGET_CR16 "/home/alan/build/gas/cr16-elf/ld/ld-new" set CC_FOR_TARGET_CR16 "" set AS_FOR_TARGET_CRIS "/home/alan/build/gas/cris-elf/gas/as-new" set LD_FOR_TARGET_CRIS "/home/alan/build/gas/cris-elf/ld/ld-new" set CC_FOR_TARGET_CRIS "" set AS_FOR_TARGET_D10V "/home/alan/build/gas/d10v-elf/gas/as-new" set LD_FOR_TARGET_D10V "/home/alan/build/gas/d10v-elf/ld/ld-new" set CC_FOR_TARGET_D10V "" set AS_FOR_TARGET_FRV "/home/alan/build/gas/frv-elf/gas/as-new" set LD_FOR_TARGET_FRV "/home/alan/build/gas/frv-elf/ld/ld-new" set CC_FOR_TARGET_FRV "" set AS_FOR_TARGET_FT32 "/home/alan/build/gas/ft32-elf/gas/as-new" set LD_FOR_TARGET_FT32 "/home/alan/build/gas/ft32-elf/ld/ld-new" set CC_FOR_TARGET_FT32 "" set AS_FOR_TARGET_H8300 "/home/alan/build/gas/h8300-elf/gas/as-new" set LD_FOR_TARGET_H8300 "/home/alan/build/gas/h8300-elf/ld/ld-new" set CC_FOR_TARGET_H8300 "" set AS_FOR_TARGET_IQ2000 "/home/alan/build/gas/iq2000-elf/gas/as-new" set LD_FOR_TARGET_IQ2000 "/home/alan/build/gas/iq2000-elf/ld/ld-new" set CC_FOR_TARGET_IQ2000 "" set AS_FOR_TARGET_LM32 "/home/alan/build/gas/lm32-linux-gnu/gas/as-new" set LD_FOR_TARGET_LM32 "/home/alan/build/gas/lm32-linux-gnu/ld/ld-new" set CC_FOR_TARGET_LM32 "" set AS_FOR_TARGET_M32C "/home/alan/build/gas/m32c-elf/gas/as-new" set LD_FOR_TARGET_M32C "/home/alan/build/gas/m32c-elf/ld/ld-new" set CC_FOR_TARGET_M32C "" set AS_FOR_TARGET_M32R "/home/alan/build/gas/m32r-elf/gas/as-new" set LD_FOR_TARGET_M32R "/home/alan/build/gas/m32r-elf/ld/ld-new" set CC_FOR_TARGET_M32R "" set AS_FOR_TARGET_M68HC11 "/home/alan/build/gas/m68hc11-elf/gas/as-new" set LD_FOR_TARGET_M68HC11 "/home/alan/build/gas/m68hc11-elf/ld/ld-new" set CC_FOR_TARGET_M68HC11 "" set AS_FOR_TARGET_MCORE "/home/alan/build/gas/mcore-elf/gas/as-new" set LD_FOR_TARGET_MCORE "/home/alan/build/gas/mcore-elf/ld/ld-new" set CC_FOR_TARGET_MCORE "" set AS_FOR_TARGET_MICROBLAZE "/home/alan/build/gas/microblaze-linux-gnu/gas/as-new" set LD_FOR_TARGET_MICROBLAZE "/home/alan/build/gas/microblaze-linux-gnu/ld/ld-new" set CC_FOR_TARGET_MICROBLAZE "microblaze-linux-gnu-gcc" set AS_FOR_TARGET_MIPS "/home/alan/build/gas/mips-linux-gnu/gas/as-new" set LD_FOR_TARGET_MIPS "/home/alan/build/gas/mips-linux-gnu/ld/ld-new" set CC_FOR_TARGET_MIPS "mips-linux-gnu-gcc" set AS_FOR_TARGET_MN10300 "/home/alan/build/gas/mn10300-elf/gas/as-new" set LD_FOR_TARGET_MN10300 "/home/alan/build/gas/mn10300-elf/ld/ld-new" set CC_FOR_TARGET_MN10300 "" set AS_FOR_TARGET_MOXIE "/home/alan/build/gas/moxie-elf/gas/as-new" set LD_FOR_TARGET_MOXIE "/home/alan/build/gas/moxie-elf/ld/ld-new" set CC_FOR_TARGET_MOXIE "" set AS_FOR_TARGET_MSP430 "/home/alan/build/gas/msp430-elf/gas/as-new" set LD_FOR_TARGET_MSP430 "/home/alan/build/gas/msp430-elf/ld/ld-new" set CC_FOR_TARGET_MSP430 "" set AS_FOR_TARGET_OR1K "/home/alan/build/gas/or1k-linux-gnu/gas/as-new" set LD_FOR_TARGET_OR1K "/home/alan/build/gas/or1k-linux-gnu/ld/ld-new" set CC_FOR_TARGET_OR1K "" set AS_FOR_TARGET_PPC "/home/alan/build/gas/powerpc-linux-gnu/gas/as-new" set LD_FOR_TARGET_PPC "/home/alan/build/gas/powerpc-linux-gnu/ld/ld-new" set CC_FOR_TARGET_PPC "powerpc-linux-gnu-gcc" set AS_FOR_TARGET_PRU "/home/alan/build/gas/pru-elf/gas/as-new" set LD_FOR_TARGET_PRU "/home/alan/build/gas/pru-elf/ld/ld-new" set CC_FOR_TARGET_PRU "" set AS_FOR_TARGET_RISCV "/home/alan/build/gas/riscv32-elf/gas/as-new" set LD_FOR_TARGET_RISCV "/home/alan/build/gas/riscv32-elf/ld/ld-new" set CC_FOR_TARGET_RISCV "" set AS_FOR_TARGET_RL78 "/home/alan/build/gas/rl78-elf/gas/as-new" set LD_FOR_TARGET_RL78 "/home/alan/build/gas/rl78-elf/ld/ld-new" set CC_FOR_TARGET_RL78 "" set AS_FOR_TARGET_RX "/home/alan/build/gas/rx-elf/gas/as-new" set LD_FOR_TARGET_RX "/home/alan/build/gas/rx-elf/ld/ld-new" set CC_FOR_TARGET_RX "" set AS_FOR_TARGET_SH "/home/alan/build/gas/sh-rtems/gas/as-new" set LD_FOR_TARGET_SH "/home/alan/build/gas/sh-rtems/ld/ld-new" set CC_FOR_TARGET_SH "" set AS_FOR_TARGET_ERC32 "" set LD_FOR_TARGET_ERC32 "" set CC_FOR_TARGET_ERC32 "" set AS_FOR_TARGET_V850 "/home/alan/build/gas/v850-elf/gas/as-new" set LD_FOR_TARGET_V850 "/home/alan/build/gas/v850-elf/ld/ld-new" set CC_FOR_TARGET_V850 "" Results both before and after were: FAIL: crisv10 mem1.ms (execution) FAIL: crisv10 mem2.ms (execution) FAIL: crisv32 mem1.ms (execution) FAIL: crisv32 mem2.ms (execution) FAIL: microblaze fail.s (execution) FAIL: microblaze pass.s (execution) expected passes 5288 unexpected failures 6 expected failures 3 untested testcases 373 unsupported tests 14
190 lines
3.2 KiB
C
190 lines
3.2 KiB
C
/* Misc. support for CPU family m32rxf.
|
|
|
|
THIS FILE IS MACHINE GENERATED WITH CGEN.
|
|
|
|
Copyright (C) 1996-2023 Free Software Foundation, Inc.
|
|
|
|
This file is part of the GNU simulators.
|
|
|
|
This file is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3, or (at your option)
|
|
any later version.
|
|
|
|
It is distributed in the hope that it will be useful, but WITHOUT
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
#define WANT_CPU m32rxf
|
|
#define WANT_CPU_M32RXF
|
|
|
|
#include "sim-main.h"
|
|
#include "cgen-ops.h"
|
|
|
|
/* Get the value of h-pc. */
|
|
|
|
USI
|
|
m32rxf_h_pc_get (SIM_CPU *current_cpu)
|
|
{
|
|
return CPU (h_pc);
|
|
}
|
|
|
|
/* Set a value for h-pc. */
|
|
|
|
void
|
|
m32rxf_h_pc_set (SIM_CPU *current_cpu, USI newval)
|
|
{
|
|
CPU (h_pc) = newval;
|
|
}
|
|
|
|
/* Get the value of h-gr. */
|
|
|
|
SI
|
|
m32rxf_h_gr_get (SIM_CPU *current_cpu, UINT regno)
|
|
{
|
|
return CPU (h_gr[regno]);
|
|
}
|
|
|
|
/* Set a value for h-gr. */
|
|
|
|
void
|
|
m32rxf_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
|
|
{
|
|
CPU (h_gr[regno]) = newval;
|
|
}
|
|
|
|
/* Get the value of h-cr. */
|
|
|
|
USI
|
|
m32rxf_h_cr_get (SIM_CPU *current_cpu, UINT regno)
|
|
{
|
|
return GET_H_CR (regno);
|
|
}
|
|
|
|
/* Set a value for h-cr. */
|
|
|
|
void
|
|
m32rxf_h_cr_set (SIM_CPU *current_cpu, UINT regno, USI newval)
|
|
{
|
|
SET_H_CR (regno, newval);
|
|
}
|
|
|
|
/* Get the value of h-accum. */
|
|
|
|
DI
|
|
m32rxf_h_accum_get (SIM_CPU *current_cpu)
|
|
{
|
|
return GET_H_ACCUM ();
|
|
}
|
|
|
|
/* Set a value for h-accum. */
|
|
|
|
void
|
|
m32rxf_h_accum_set (SIM_CPU *current_cpu, DI newval)
|
|
{
|
|
SET_H_ACCUM (newval);
|
|
}
|
|
|
|
/* Get the value of h-accums. */
|
|
|
|
DI
|
|
m32rxf_h_accums_get (SIM_CPU *current_cpu, UINT regno)
|
|
{
|
|
return GET_H_ACCUMS (regno);
|
|
}
|
|
|
|
/* Set a value for h-accums. */
|
|
|
|
void
|
|
m32rxf_h_accums_set (SIM_CPU *current_cpu, UINT regno, DI newval)
|
|
{
|
|
SET_H_ACCUMS (regno, newval);
|
|
}
|
|
|
|
/* Get the value of h-cond. */
|
|
|
|
BI
|
|
m32rxf_h_cond_get (SIM_CPU *current_cpu)
|
|
{
|
|
return CPU (h_cond);
|
|
}
|
|
|
|
/* Set a value for h-cond. */
|
|
|
|
void
|
|
m32rxf_h_cond_set (SIM_CPU *current_cpu, BI newval)
|
|
{
|
|
CPU (h_cond) = newval;
|
|
}
|
|
|
|
/* Get the value of h-psw. */
|
|
|
|
UQI
|
|
m32rxf_h_psw_get (SIM_CPU *current_cpu)
|
|
{
|
|
return GET_H_PSW ();
|
|
}
|
|
|
|
/* Set a value for h-psw. */
|
|
|
|
void
|
|
m32rxf_h_psw_set (SIM_CPU *current_cpu, UQI newval)
|
|
{
|
|
SET_H_PSW (newval);
|
|
}
|
|
|
|
/* Get the value of h-bpsw. */
|
|
|
|
UQI
|
|
m32rxf_h_bpsw_get (SIM_CPU *current_cpu)
|
|
{
|
|
return CPU (h_bpsw);
|
|
}
|
|
|
|
/* Set a value for h-bpsw. */
|
|
|
|
void
|
|
m32rxf_h_bpsw_set (SIM_CPU *current_cpu, UQI newval)
|
|
{
|
|
CPU (h_bpsw) = newval;
|
|
}
|
|
|
|
/* Get the value of h-bbpsw. */
|
|
|
|
UQI
|
|
m32rxf_h_bbpsw_get (SIM_CPU *current_cpu)
|
|
{
|
|
return CPU (h_bbpsw);
|
|
}
|
|
|
|
/* Set a value for h-bbpsw. */
|
|
|
|
void
|
|
m32rxf_h_bbpsw_set (SIM_CPU *current_cpu, UQI newval)
|
|
{
|
|
CPU (h_bbpsw) = newval;
|
|
}
|
|
|
|
/* Get the value of h-lock. */
|
|
|
|
BI
|
|
m32rxf_h_lock_get (SIM_CPU *current_cpu)
|
|
{
|
|
return CPU (h_lock);
|
|
}
|
|
|
|
/* Set a value for h-lock. */
|
|
|
|
void
|
|
m32rxf_h_lock_set (SIM_CPU *current_cpu, BI newval)
|
|
{
|
|
CPU (h_lock) = newval;
|
|
}
|