From f2642e205549efefb7391de32b189e94e5503ddc Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 23 Aug 2010 11:18:39 -0500 Subject: Loader: Make the load address mask be a parameter of the system rather than a constant. This allows one two different OS requirements for the same ISA to be handled. Some OSes are compiled for a virtual address and need to be loaded into physical memory that starts at address 0, while other bare metal tools generate images that start at address 0. --- src/arch/arm/ArmSystem.py | 1 + src/arch/arm/isa_traits.hh | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/arch/arm') diff --git a/src/arch/arm/ArmSystem.py b/src/arch/arm/ArmSystem.py index 872776c69..a93730867 100644 --- a/src/arch/arm/ArmSystem.py +++ b/src/arch/arm/ArmSystem.py @@ -32,4 +32,5 @@ from System import System class ArmSystem(System): type = 'ArmSystem' + load_addr_mask = 0xffffffff diff --git a/src/arch/arm/isa_traits.hh b/src/arch/arm/isa_traits.hh index d81981ff7..2744ec753 100644 --- a/src/arch/arm/isa_traits.hh +++ b/src/arch/arm/isa_traits.hh @@ -91,9 +91,6 @@ namespace ArmISA const Addr KSeg0Base = ULL(0x80000000); const Addr KSeg0Mask = ULL(0x1FFFFFFF); - // For loading... XXX This maybe could be USegEnd?? --ali - const Addr LoadAddrMask = ULL(0xffffffffff); - const unsigned VABits = 32; const unsigned PABits = 32; // Is this correct? const Addr VAddrImplMask = (ULL(1) << VABits) - 1; -- cgit v1.2.3