sim.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * include/asm-v850/sim.h -- Machine-dependent defs for GDB v850e simulator
  3. *
  4. * Copyright (C) 2001,02,03 NEC Electronics Corporation
  5. * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
  6. *
  7. * This file is subject to the terms and conditions of the GNU General
  8. * Public License. See the file COPYING in the main directory of this
  9. * archive for more details.
  10. *
  11. * Written by Miles Bader <miles@gnu.org>
  12. */
  13. #ifndef __V850_SIM_H__
  14. #define __V850_SIM_H__
  15. #define CPU_ARCH "v850e"
  16. #define CPU_MODEL "v850e"
  17. #define CPU_MODEL_LONG "NEC V850E"
  18. #define PLATFORM "gdb/v850e"
  19. #define PLATFORM_LONG "GDB V850E simulator"
  20. /* We use a weird value for RAM, not just 0, for testing purposes.
  21. These must match the values used in the linker script. */
  22. #define RAM_ADDR 0x8F000000
  23. #define RAM_SIZE 0x03000000
  24. /* For <asm/page.h> */
  25. #define PAGE_OFFSET RAM_ADDR
  26. /* For <asm/entry.h> */
  27. /* `R0 RAM', used for a few miscellaneous variables that must be
  28. accessible using a load instruction relative to R0. On real
  29. processors, this usually is on-chip RAM, but here we just
  30. choose an arbitrary address that meets the above constraint. */
  31. #define R0_RAM_ADDR 0xFFFFF000
  32. /* For <asm/param.h> */
  33. #ifndef HZ
  34. #define HZ 24 /* Minimum supported frequency. */
  35. #endif
  36. /* For <asm/irq.h> */
  37. #define NUM_CPU_IRQS 6
  38. #endif /* __V850_SIM_H__ */