utility.cc (10407:a9023811bf9e) | utility.cc (10553:c1ad57c53a36) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * Copyright (c) 2011 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 38 unchanged lines hidden (view full) --- 47#include "fputils/fp80.h" 48#include "sim/system.hh" 49 50namespace X86ISA { 51 52uint64_t 53getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp) 54{ | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * Copyright (c) 2011 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 38 unchanged lines hidden (view full) --- 47#include "fputils/fp80.h" 48#include "sim/system.hh" 49 50namespace X86ISA { 51 52uint64_t 53getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp) 54{ |
55 if (!FullSystem) { 56 panic("getArgument() only implemented for full system mode.\n"); 57 } else if (fp) { | 55 if (fp) { |
58 panic("getArgument(): Floating point arguments not implemented\n"); 59 } else if (size != 8) { 60 panic("getArgument(): Can only handle 64-bit arguments.\n"); 61 } 62 63 // The first 6 integer arguments are passed in registers, the rest 64 // are passed on the stack. 65 const int int_reg_map[] = { --- 309 unchanged lines hidden --- | 56 panic("getArgument(): Floating point arguments not implemented\n"); 57 } else if (size != 8) { 58 panic("getArgument(): Can only handle 64-bit arguments.\n"); 59 } 60 61 // The first 6 integer arguments are passed in registers, the rest 62 // are passed on the stack. 63 const int int_reg_map[] = { --- 309 unchanged lines hidden --- |