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

--- 30 unchanged lines hidden (view full) ---

39 */
40
41#include "arch/x86/interrupts.hh"
42#include "arch/x86/registers.hh"
43#include "arch/x86/tlb.hh"
44#include "arch/x86/utility.hh"
45#include "arch/x86/x86_traits.hh"
46#include "cpu/base.hh"
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) {

--- 291 unchanged lines hidden (view full) ---

347 // thing".
348 for (int i = new_top; i != top; i = (i + 1 + 8) % 8)
349 ftw &= ~(0x3 << (2 * i));
350 }
351
352 return ftw;
353}
354
355double
356loadFloat80(const void *_mem)
357{
358 const fp80_t *fp80((const fp80_t *)_mem);
359
360 return fp80_cvtd(*fp80);
361}
362
363void
364storeFloat80(void *_mem, double value)
365{
366 fp80_t *fp80((fp80_t *)_mem);
367
368 *fp80 = fp80_cvfd(value);
369}
370
371} // namespace X86_ISA