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/sparc/SparcSystem.py | 2 +- src/arch/sparc/isa_traits.hh | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/arch/sparc') diff --git a/src/arch/sparc/SparcSystem.py b/src/arch/sparc/SparcSystem.py index 2e65f640d..92845235a 100644 --- a/src/arch/sparc/SparcSystem.py +++ b/src/arch/sparc/SparcSystem.py @@ -71,4 +71,4 @@ class SparcSystem(System): nvram_bin = Param.String("file that contains the contents of nvram") hypervisor_desc_bin = Param.String("file that contains the hypervisor description") partition_desc_bin = Param.String("file that contains the partition description") - + load_addr_mask = 0xffffffffff diff --git a/src/arch/sparc/isa_traits.hh b/src/arch/sparc/isa_traits.hh index a4dc7322d..0a568ddbe 100644 --- a/src/arch/sparc/isa_traits.hh +++ b/src/arch/sparc/isa_traits.hh @@ -80,11 +80,6 @@ namespace SparcISA const Addr BytesInPageMask = ULL(0x1FFF); #if FULL_SYSTEM - // I don't know what it's for, so I don't - // know what SPARC's value should be - // For loading... XXX This maybe could be USegEnd?? --ali - const Addr LoadAddrMask = ULL(0xffffffffff); - enum InterruptTypes { IT_TRAP_LEVEL_ZERO, -- cgit v1.2.3