sparc64 niagara, usiii: Remove -D options from cfg file and move to bspopts.h

Updates #3425.
This commit is contained in:
Joel Sherrill
2018-05-09 15:22:04 -05:00
parent 85602e0d2e
commit c8dcdf5438
9 changed files with 34 additions and 3 deletions
+4
View File
@@ -37,10 +37,14 @@
#ifndef KERN_sparc64_ARCH_H_
#define KERN_sparc64_ARCH_H_
#include <bspopts.h>
#if defined (SUN4U)
#include <arch/sun4u/arch.h>
#elif defined (SUN4V)
#include <arch/sun4v/arch.h>
#else
#error "No SUN model defined"
#endif
#define ASI_AIUP 0x10 /** Access to primary context with user privileges. */
+4
View File
@@ -35,10 +35,14 @@
#ifndef KERN_sparc64_FRAME_H_
#define KERN_sparc64_FRAME_H_
#include <bspopts.h>
#if defined (SUN4U)
#include <arch/mm/sun4u/frame.h>
#elif defined (SUN4V)
#include <arch/mm/sun4v/frame.h>
#else
#error "No SUN model defined"
#endif
#endif
+4
View File
@@ -35,10 +35,14 @@
#ifndef KERN_sparc64_MMU_H_
#define KERN_sparc64_MMU_H_
#include <bspopts.h>
#if defined (SUN4U)
#include <arch/mm/sun4u/mmu.h>
#elif defined (SUN4V)
#include <arch/mm/sun4v/mmu.h>
#else
#error "No SUN model defined"
#endif
+3
View File
@@ -35,11 +35,14 @@
#ifndef KERN_sparc64_TLB_H_
#define KERN_sparc64_TLB_H_
#include <bspopts.h>
#if defined (SUN4U)
#include <arch/mm/sun4u/tlb.h>
#elif defined (SUN4V)
#include <arch/mm/sun4v/tlb.h>
#else
#error "No SUN model defined"
#endif
#endif
+4
View File
@@ -35,10 +35,14 @@
#ifndef KERN_sparc64_TTE_H_
#define KERN_sparc64_TTE_H_
#include <bspopts.h>
#if defined (SUN4U)
#include <arch/mm/sun4u/tte.h>
#elif defined (SUN4V)
#include <arch/mm/sun4v/tte.h>
#else
#error "No SUN model defined"
#endif
#endif
+1 -1
View File
@@ -7,7 +7,7 @@ RTEMS_CPU=sparc64
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=niagara -DSUN4V
CPU_CFLAGS = -mcpu=niagara
# optimize flag: typically -g -O2
CFLAGS_OPTIMIZE_V = -g -O2
+1 -1
View File
@@ -7,7 +7,7 @@ RTEMS_CPU=sparc64
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=ultrasparc3 -DUS3 -DSUN4U
CPU_CFLAGS = -mcpu=ultrasparc3
# optimize flag: typically -g -O2
CFLAGS_OPTIMIZE_V = -g -O2
@@ -10,6 +10,10 @@ RTEMS_CANONICAL_TARGET_CPU
AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
RTEMS_BSP_CONFIGURE
RTEMS_BSPOPTS_SET([SUN4V],[niagara],[1])
RTEMS_BSPOPTS_SET([SUN4V],[*],[])
RTEMS_BSPOPTS_HELP([SUN4V],
[If defined, enable SUN model optons for the Niagara model.])
RTEMS_BSP_CLEANUP_OPTIONS
+9 -1
View File
@@ -10,13 +10,21 @@ RTEMS_CANONICAL_TARGET_CPU
AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
RTEMS_BSP_CONFIGURE
RTEMS_BSPOPTS_SET([SIMSPARC_FAST_IDLE],[*],[])
RTEMS_BSPOPTS_HELP([SIMSPARC_FAST_IDLE],
[If defined, speed up the clock ticks while the idle task is running so
time spent in the idle task is minimized. This significantly reduces
the wall time required to execute the RTEMS test suites.])
RTEMS_BSPOPTS_SET([US3],[usiii],[1])
RTEMS_BSPOPTS_SET([US3],[*],[])
RTEMS_BSPOPTS_HELP([US3],
[If defined, enable UltraSPARC optons for the USIII BSP.])
RTEMS_BSPOPTS_SET([SUN4U],[usiii],[1])
RTEMS_BSPOPTS_SET([SUN4U],[*],[])
RTEMS_BSPOPTS_HELP([SUN4U],
[If defined, enable SUN model optons for the USIII BSP.])
RTEMS_BSP_CLEANUP_OPTIONS