Package mars.mips.hardware
Class MemoryConfigurations
java.lang.Object
mars.mips.hardware.MemoryConfigurations
Models the collection of MIPS memory configurations.
The default configuration is based on SPIM. Starting with MARS 3.7,
the configuration can be changed.
- Version:
- August 2009
- Author:
- Pete Sanderson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Highest data segment address.static final int
Lowest data segment address.static final int
Highest heap/stack data address.static final int
Lowest heap/stack data address.static final int
Exception handler address.static final int
Highest extern data address.static final int
Lowest extern data address.static final int
Initial global pointer ($gp).static final int
Highest kernel data segment address.static final int
Lowest kernel data segment address.static final int
Highest kernel text segment address.static final int
Lowest kernel text segment address.static final int
Highest mapped address.static final int
Lowest mapped address.static final int
Highest memory-mapped I/O address.static final int
Lowest memory-mapped I/O address.static final int
Initial stack pointer ($sp).static final int
Highest static data address.static final int
Lowest static data address.static final int
Highest text segment address.static final int
Lowest text segment address.static final int
Highest user space address.static final int
Lowest user space address. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryConfiguration
getConfiguration
(String identifier) static List<MemoryConfiguration>
static MemoryConfiguration
static MemoryConfiguration
static boolean
setCurrentConfiguration
(MemoryConfiguration configuration)
-
Field Details
-
MAPPED_LOW
public static final int MAPPED_LOWLowest mapped address.- See Also:
-
MAPPED_HIGH
public static final int MAPPED_HIGHHighest mapped address.- See Also:
-
USER_LOW
public static final int USER_LOWLowest user space address.- See Also:
-
USER_HIGH
public static final int USER_HIGHHighest user space address.- See Also:
-
TEXT_LOW
public static final int TEXT_LOWLowest text segment address.- See Also:
-
TEXT_HIGH
public static final int TEXT_HIGHHighest text segment address.- See Also:
-
DATA_LOW
public static final int DATA_LOWLowest data segment address.- See Also:
-
DATA_HIGH
public static final int DATA_HIGHHighest data segment address.- See Also:
-
EXTERN_LOW
public static final int EXTERN_LOWLowest extern data address.- See Also:
-
EXTERN_HIGH
public static final int EXTERN_HIGHHighest extern data address.- See Also:
-
STATIC_LOW
public static final int STATIC_LOWLowest static data address.- See Also:
-
STATIC_HIGH
public static final int STATIC_HIGHHighest static data address.- See Also:
-
DYNAMIC_LOW
public static final int DYNAMIC_LOWLowest heap/stack data address.- See Also:
-
DYNAMIC_HIGH
public static final int DYNAMIC_HIGHHighest heap/stack data address.- See Also:
-
KERNEL_TEXT_LOW
public static final int KERNEL_TEXT_LOWLowest kernel text segment address.- See Also:
-
KERNEL_TEXT_HIGH
public static final int KERNEL_TEXT_HIGHHighest kernel text segment address.- See Also:
-
KERNEL_DATA_LOW
public static final int KERNEL_DATA_LOWLowest kernel data segment address.- See Also:
-
KERNEL_DATA_HIGH
public static final int KERNEL_DATA_HIGHHighest kernel data segment address.- See Also:
-
MMIO_LOW
public static final int MMIO_LOWLowest memory-mapped I/O address.- See Also:
-
MMIO_HIGH
public static final int MMIO_HIGHHighest memory-mapped I/O address.- See Also:
-
EXCEPTION_HANDLER
public static final int EXCEPTION_HANDLERException handler address.- See Also:
-
GLOBAL_POINTER
public static final int GLOBAL_POINTERInitial global pointer ($gp).- See Also:
-
STACK_POINTER
public static final int STACK_POINTERInitial stack pointer ($sp).- See Also:
-
-
Constructor Details
-
MemoryConfigurations
public MemoryConfigurations()
-
-
Method Details
-
getConfigurations
-
getConfiguration
-
getDefaultConfiguration
-
getCurrentConfiguration
-
setCurrentConfiguration
-