gem5
|
#include "arch/mips/isa_traits.hh"
#include "arch/mips/types.hh"
#include "base/misc.hh"
#include "base/types.hh"
Go to the source code of this file.
Namespaces | |
MipsISA | |
Enumerations | |
enum | { MipsISA::SIMD_FMT_L, MipsISA::SIMD_FMT_W, MipsISA::SIMD_FMT_PH, MipsISA::SIMD_FMT_QB, MipsISA::SIMD_NUM_FMTS } |
enum | { MipsISA::DSP_POS, MipsISA::DSP_SCOUNT, MipsISA::DSP_C, MipsISA::DSP_OUFLAG, MipsISA::DSP_CCOND, MipsISA::DSP_EFI, MipsISA::DSP_NUM_FIELDS } |
enum | { MipsISA::CMP_EQ, MipsISA::CMP_LT, MipsISA::CMP_LE } |
enum | { MipsISA::MODE_L, MipsISA::MODE_R, MipsISA::MODE_LA, MipsISA::MODE_RA, MipsISA::MODE_X } |
enum | { MipsISA::UNSIGNED, MipsISA::SIGNED } |
enum | { MipsISA::NOSATURATE, MipsISA::SATURATE } |
enum | { MipsISA::NOROUND, MipsISA::ROUND } |
Functions | |
int32_t | MipsISA::bitrev (int32_t value) |
uint64_t | MipsISA::dspSaturate (uint64_t value, int32_t fmt, int32_t sign, uint32_t *overflow) |
uint64_t | MipsISA::checkOverflow (uint64_t value, int32_t fmt, int32_t sign, uint32_t *overflow) |
uint64_t | MipsISA::signExtend (uint64_t value, int32_t signpos) |
uint64_t | MipsISA::addHalfLsb (uint64_t value, int32_t lsbpos) |
int32_t | MipsISA::dspAbs (int32_t a, int32_t fmt, uint32_t *dspctl) |
int32_t | MipsISA::dspAdd (int32_t a, int32_t b, int32_t fmt, int32_t saturate, int32_t sign, uint32_t *dspctl) |
int32_t | MipsISA::dspAddh (int32_t a, int32_t b, int32_t fmt, int32_t round, int32_t sign) |
int32_t | MipsISA::dspSub (int32_t a, int32_t b, int32_t fmt, int32_t saturate, int32_t sign, uint32_t *dspctl) |
int32_t | MipsISA::dspSubh (int32_t a, int32_t b, int32_t fmt, int32_t round, int32_t sign) |
int32_t | MipsISA::dspShll (int32_t a, uint32_t sa, int32_t fmt, int32_t saturate, int32_t sign, uint32_t *dspctl) |
int32_t | MipsISA::dspShrl (int32_t a, uint32_t sa, int32_t fmt, int32_t sign) |
int32_t | MipsISA::dspShra (int32_t a, uint32_t sa, int32_t fmt, int32_t round, int32_t sign, uint32_t *dspctl) |
int32_t | MipsISA::dspMul (int32_t a, int32_t b, int32_t fmt, int32_t saturate, uint32_t *dspctl) |
int32_t | MipsISA::dspMulq (int32_t a, int32_t b, int32_t fmt, int32_t saturate, int32_t round, uint32_t *dspctl) |
int32_t | MipsISA::dspMuleu (int32_t a, int32_t b, int32_t mode, uint32_t *dspctl) |
int32_t | MipsISA::dspMuleq (int32_t a, int32_t b, int32_t mode, uint32_t *dspctl) |
int64_t | MipsISA::dspDpaq (int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t infmt, int32_t outfmt, int32_t postsat, int32_t mode, uint32_t *dspctl) |
int64_t | MipsISA::dspDpsq (int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t infmt, int32_t outfmt, int32_t postsat, int32_t mode, uint32_t *dspctl) |
int64_t | MipsISA::dspDpa (int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt, int32_t sign, int32_t mode) |
int64_t | MipsISA::dspDps (int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt, int32_t sign, int32_t mode) |
int64_t | MipsISA::dspMaq (int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt, int32_t mode, int32_t saturate, uint32_t *dspctl) |
int64_t | MipsISA::dspMulsa (int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt) |
int64_t | MipsISA::dspMulsaq (int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt, uint32_t *dspctl) |
void | MipsISA::dspCmp (int32_t a, int32_t b, int32_t fmt, int32_t sign, int32_t op, uint32_t *dspctl) |
int32_t | MipsISA::dspCmpg (int32_t a, int32_t b, int32_t fmt, int32_t sign, int32_t op) |
int32_t | MipsISA::dspCmpgd (int32_t a, int32_t b, int32_t fmt, int32_t sign, int32_t op, uint32_t *dspctl) |
int32_t | MipsISA::dspPrece (int32_t a, int32_t infmt, int32_t insign, int32_t outfmt, int32_t outsign, int32_t mode) |
int32_t | MipsISA::dspPrecrqu (int32_t a, int32_t b, uint32_t *dspctl) |
int32_t | MipsISA::dspPrecrq (int32_t a, int32_t b, int32_t fmt, uint32_t *dspctl) |
int32_t | MipsISA::dspPrecrSra (int32_t a, int32_t b, int32_t sa, int32_t fmt, int32_t round) |
int32_t | MipsISA::dspPick (int32_t a, int32_t b, int32_t fmt, uint32_t *dspctl) |
int32_t | MipsISA::dspPack (int32_t a, int32_t b, int32_t fmt) |
int32_t | MipsISA::dspExtr (int64_t dspac, int32_t fmt, int32_t sa, int32_t round, int32_t saturate, uint32_t *dspctl) |
int32_t | MipsISA::dspExtp (int64_t dspac, int32_t size, uint32_t *dspctl) |
int32_t | MipsISA::dspExtpd (int64_t dspac, int32_t size, uint32_t *dspctl) |
void | MipsISA::simdPack (uint64_t *values_ptr, int32_t *reg, int32_t fmt) |
void | MipsISA::simdUnpack (int32_t reg, uint64_t *values_ptr, int32_t fmt, int32_t sign) |
void | MipsISA::writeDSPControl (uint32_t *dspctl, uint32_t value, uint32_t mask) |
uint32_t | MipsISA::readDSPControl (uint32_t *dspctl, uint32_t mask) |
Variables | |
const uint32_t | MipsISA::DSP_CTL_POS [DSP_NUM_FIELDS] = { 0, 7, 13, 16, 24, 14 } |
const uint32_t | MipsISA::DSP_CTL_MASK [DSP_NUM_FIELDS] |
const uint32_t | MipsISA::SIMD_MAX_VALS = 4 |
const uint32_t | MipsISA::SIMD_NVALS [SIMD_NUM_FMTS] = { 1, 1, 2, 4 } |
const uint32_t | MipsISA::SIMD_NBITS [SIMD_NUM_FMTS] = { 64, 32, 16, 8 } |
const uint32_t | MipsISA::SIMD_LOG2N [SIMD_NUM_FMTS] = { 6, 5, 4, 3 } |
const uint64_t | MipsISA::FIXED_L_SMAX = ULL(0x7fffffffffffffff) |
const uint64_t | MipsISA::FIXED_W_SMAX = ULL(0x000000007fffffff) |
const uint64_t | MipsISA::FIXED_H_SMAX = ULL(0x0000000000007fff) |
const uint64_t | MipsISA::FIXED_B_SMAX = ULL(0x000000000000007f) |
const uint64_t | MipsISA::FIXED_L_UMAX = ULL(0xffffffffffffffff) |
const uint64_t | MipsISA::FIXED_W_UMAX = ULL(0x00000000ffffffff) |
const uint64_t | MipsISA::FIXED_H_UMAX = ULL(0x000000000000ffff) |
const uint64_t | MipsISA::FIXED_B_UMAX = ULL(0x00000000000000ff) |
const uint64_t | MipsISA::FIXED_SMAX [SIMD_NUM_FMTS] |
const uint64_t | MipsISA::FIXED_UMAX [SIMD_NUM_FMTS] |
const uint64_t | MipsISA::FIXED_L_SMIN = ULL(0x8000000000000000) |
const uint64_t | MipsISA::FIXED_W_SMIN = ULL(0xffffffff80000000) |
const uint64_t | MipsISA::FIXED_H_SMIN = ULL(0xffffffffffff8000) |
const uint64_t | MipsISA::FIXED_B_SMIN = ULL(0xffffffffffffff80) |
const uint64_t | MipsISA::FIXED_L_UMIN = ULL(0x0000000000000000) |
const uint64_t | MipsISA::FIXED_W_UMIN = ULL(0x0000000000000000) |
const uint64_t | MipsISA::FIXED_H_UMIN = ULL(0x0000000000000000) |
const uint64_t | MipsISA::FIXED_B_UMIN = ULL(0x0000000000000000) |
const uint64_t | MipsISA::FIXED_SMIN [SIMD_NUM_FMTS] |
const uint64_t | MipsISA::FIXED_UMIN [SIMD_NUM_FMTS] |