cpu.c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* Misc. support for CPU family iq2000bf.
  2. THIS FILE IS MACHINE GENERATED WITH CGEN.
  3. Copyright 1996-2015 Free Software Foundation, Inc.
  4. This file is part of the GNU simulators.
  5. This file is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. It is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. License for more details.
  13. You should have received a copy of the GNU General Public License along
  14. with this program; if not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #define WANT_CPU iq2000bf
  17. #define WANT_CPU_IQ2000BF
  18. #include "sim-main.h"
  19. #include "cgen-ops.h"
  20. /* Get the value of h-pc. */
  21. USI
  22. iq2000bf_h_pc_get (SIM_CPU *current_cpu)
  23. {
  24. return GET_H_PC ();
  25. }
  26. /* Set a value for h-pc. */
  27. void
  28. iq2000bf_h_pc_set (SIM_CPU *current_cpu, USI newval)
  29. {
  30. SET_H_PC (newval);
  31. }
  32. /* Get the value of h-gr. */
  33. SI
  34. iq2000bf_h_gr_get (SIM_CPU *current_cpu, UINT regno)
  35. {
  36. return GET_H_GR (regno);
  37. }
  38. /* Set a value for h-gr. */
  39. void
  40. iq2000bf_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval)
  41. {
  42. SET_H_GR (regno, newval);
  43. }
  44. /* Record trace results for INSN. */
  45. void
  46. iq2000bf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn,
  47. int *indices, TRACE_RECORD *tr)
  48. {
  49. }