Line 5... |
Line 5... |
* @brief RISC-V extension-F (Floating-point Instructions).
|
* @brief RISC-V extension-F (Floating-point Instructions).
|
*/
|
*/
|
|
|
#include "api_utils.h"
|
#include "api_utils.h"
|
#include "riscv-isa.h"
|
#include "riscv-isa.h"
|
#include "instructions.h"
|
#include "cpu_riscv_func.h"
|
|
|
namespace debugger {
|
namespace debugger {
|
|
|
void addIsaExtensionF(CpuContextType *data, AttributeType *out) {
|
void CpuRiver_Functional::addIsaExtensionF() {
|
// TODO
|
// TODO
|
/*
|
/*
|
addInstr("FADD_S", "0000000??????????????????1010011", NULL, out);
|
addInstr("FADD_S", "0000000??????????????????1010011", NULL, out);
|
addInstr("FSUB_S", "0000100??????????????????1010011", NULL, out);
|
addInstr("FSUB_S", "0000100??????????????????1010011", NULL, out);
|
addInstr("FMUL_S", "0001000??????????????????1010011", NULL, out);
|
addInstr("FMUL_S", "0001000??????????????????1010011", NULL, out);
|
Line 83... |
Line 83... |
def FSRM = BitPat("b000000000010?????001?????1110011")
|
def FSRM = BitPat("b000000000010?????001?????1110011")
|
def FSRMI = BitPat("b000000000010?????101?????1110011")
|
def FSRMI = BitPat("b000000000010?????101?????1110011")
|
def FSCSR = BitPat("b000000000011?????001?????1110011")
|
def FSCSR = BitPat("b000000000011?????001?????1110011")
|
def FRCSR = BitPat("b00000000001100000010?????1110011")
|
def FRCSR = BitPat("b00000000001100000010?????1110011")
|
*/
|
*/
|
data->csr[CSR_misa] |= (1LL << ('F' - 'A'));
|
uint64_t isa = portCSR_.read(CSR_misa).val;
|
|
isa |= (1LL << ('F' - 'A'));
|
|
portCSR_.write(CSR_misa, isa);
|
}
|
}
|
|
|
} // namespace debugger
|
} // namespace debugger
|
|
|
No newline at end of file
|
No newline at end of file
|