StuBS
state.cc File Reference
#include "debug/gdb/state.h"
#include "debug/gdb/handler.h"
#include "machine/core.h"
Include dependency graph for state.cc:

Macros

#define CAST_TO_REGISTER(REG)   Register(static_cast<void*>(&(REG)), sizeof(REG))
 

Constants

static State state [Core::MAX]
 Storage for the current core register state.
 
static FPU::State fpu_state [Core::MAX]
 Storage for the current FPU state of the core.
 

Macro Definition Documentation

◆ CAST_TO_REGISTER

#define CAST_TO_REGISTER (   REG)    Register(static_cast<void*>(&(REG)), sizeof(REG))

Variable Documentation

◆ state

State state[Core::MAX]
static

Storage for the current core register state.

Updated at the beginning of interrupt handling and written back at the end (with possibly modified values)

◆ fpu_state

FPU::State fpu_state[Core::MAX]
static

Storage for the current FPU state of the core.

Stored when State::save is called using FXSAVE (in FPU::State::save()) and later restored with FXRSTOR (in FPU::State::restore()) – with modified values if necessary