38#ifndef __ARCH_X86_UTILITY_HH__
39#define __ARCH_X86_UTILITY_HH__
double loadFloat80(const void *_mem)
Load an 80-bit float from memory and convert it to double.
void storeFloat80(void *_mem, double value)
Convert and store a double as an 80-bit float.
uint8_t convX87TagsToXTags(uint16_t ftw)
Convert an x87 tag word to abridged tag format.
void setRFlags(ThreadContext *tc, uint64_t val)
Set update the rflags register and internal gem5 state.
uint16_t convX87XTagsToTags(uint8_t ftwx)
Convert an x87 xtag word to normal tags format.
uint64_t getRFlags(ThreadContext *tc)
Reconstruct the rflags register from the internal gem5 register state.
uint16_t genX87Tags(uint16_t ftw, uint8_t top, int8_t spm)
Generate and updated x87 tag register after a push/pop operation.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.