Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 22 of 22) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DCV32E40P.cs34 …on(pattern: "FFFFFFFFFFFFBBBBB000DDDDD0001011", handler: opcode => LoadRegisterImmediate(opcode, W… in CV32E40P()
35 …on(pattern: "FFFFFFFFFFFFBBBBB100DDDDD0001011", handler: opcode => LoadRegisterImmediate(opcode, W… in CV32E40P()
36 …on(pattern: "FFFFFFFFFFFFBBBBB001DDDDD0001011", handler: opcode => LoadRegisterImmediate(opcode, W… in CV32E40P()
37 …on(pattern: "FFFFFFFFFFFFBBBBB101DDDDD0001011", handler: opcode => LoadRegisterImmediate(opcode, W… in CV32E40P()
38 …on(pattern: "FFFFFFFFFFFFBBBBB010DDDDD0001011", handler: opcode => LoadRegisterImmediate(opcode, W… in CV32E40P()
39 …ion(pattern: "0000000FFFFFBBBBB111DDDDD0001011", handler: opcode => LoadRegisterRegister(opcode, W… in CV32E40P()
40 …ion(pattern: "0100000FFFFFBBBBB111DDDDD0001011", handler: opcode => LoadRegisterRegister(opcode, W… in CV32E40P()
41 …ion(pattern: "0001000FFFFFBBBBB111DDDDD0001011", handler: opcode => LoadRegisterRegister(opcode, W… in CV32E40P()
42 …ion(pattern: "0101000FFFFFBBBBB111DDDDD0001011", handler: opcode => LoadRegisterRegister(opcode, W… in CV32E40P()
43 …ion(pattern: "0010000FFFFFBBBBB111DDDDD0001011", handler: opcode => LoadRegisterRegister(opcode, W… in CV32E40P()
[all …]
DAndes_AndeStarV5Extension.cs61 …private void ReadFromMemoryToRegister(ulong opcode, AccessWidth width, Func<ulong, ulong> extracto… in ReadFromMemoryToRegister() argument
63 var rd = (int)BitHelper.GetValue(opcode, 7, 5); in ReadFromMemoryToRegister()
64 var imm = GetImmediate(opcode, extractor, immediateBits); in ReadFromMemoryToRegister()
98 …private void WriteRegisterToMemory(ulong opcode, AccessWidth width, Func<ulong, ulong> extractor, … in WriteRegisterToMemory() argument
100 var rs2 = (int)BitHelper.GetValue(opcode, 20, 5); in WriteRegisterToMemory()
101 var imm = GetImmediate(opcode, extractor, immediateBits); in WriteRegisterToMemory()
123 private void HandleADDIGP(ulong opcode) in HandleADDIGP() argument
125 var rd = (int)BitHelper.GetValue(opcode, 7, 5); in HandleADDIGP()
126 var imm = GetImmediate(opcode, LoadExtractorByte, 18); in HandleADDIGP()
132 private ulong LoadExtractorByte(ulong opcode) in LoadExtractorByte() argument
[all …]
DOpenTitan_BigNumberAcceleratorCore.cs429 private void LoopHandler(ulong opcode) in LoopHandler() argument
432 var grs = (int)BitHelper.GetValue(opcode, 15, 5); in LoopHandler()
434 var bodySize = (uint)BitHelper.GetValue(opcode, 20, 12) + 1; in LoopHandler()
440 private void LoopiHandler(ulong opcode) in LoopiHandler() argument
443 var iterations1 = (uint)BitHelper.GetValue(opcode, 15, 5); in LoopiHandler()
444 var iterations0 = (uint)BitHelper.GetValue(opcode, 7, 5); in LoopiHandler()
447 var bodySize = (uint)BitHelper.GetValue(opcode, 20, 12) + 1; in LoopiHandler()
487 private void WsrWriteReadHandler(ulong opcode) in WsrWriteReadHandler() argument
489 var isWrite = BitHelper.IsBitSet((uint)opcode, 31); in WsrWriteReadHandler()
490 var wsr = (int)BitHelper.GetValue(opcode, 20, 8); in WsrWriteReadHandler()
[all …]
DPicoRV32.cs180 private void HandleGetqInstruction(UInt64 opcode) in HandleGetqInstruction() argument
182 var rd = (int)BitHelper.GetValue(opcode, 7, 5); in HandleGetqInstruction()
183 var qs = (int)BitHelper.GetValue(opcode, 15, 2); in HandleGetqInstruction()
193 private void HandleSetqInstruction(UInt64 opcode) in HandleSetqInstruction() argument
195 var qd = (int)BitHelper.GetValue(opcode, 7, 2); in HandleSetqInstruction()
196 var rs = (int)BitHelper.GetValue(opcode, 15, 5); in HandleSetqInstruction()
203 private void HandleRetirqInstruction(UInt64 opcode) in HandleRetirqInstruction() argument
222 private void HandleMaskirqInstruction(UInt64 opcode) in HandleMaskirqInstruction() argument
224 var rd = (int)BitHelper.GetValue(opcode, 7, 5); in HandleMaskirqInstruction()
225 var rs = (int)BitHelper.GetValue(opcode, 15, 5); in HandleMaskirqInstruction()
[all …]
DVexRiscv.cs102 private void HandleFlushDataCacheInstruction(UInt64 opcode) in HandleFlushDataCacheInstruction() argument
DBaseRiscV.cs781 private int HandleCustomInstruction(UInt64 id, UInt64 opcode) in HandleCustomInstruction() argument
789 handler(opcode); in HandleCustomInstruction()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ExecutionTracer/
DTraceBinaryWriter.cs72 if(!TryReadAndDecodeInstruction(pc, block.DisassemblyFlags, out var opcode)) in Write()
83 WriteByteToBuffer((byte)opcode.Length); in Write()
84 WriteBytesToBuffer(opcode); in Write()
94 pc += (ulong)opcode.Length; in Write()
95 pcVirtual += (ulong)opcode.Length; in Write()
142 private bool TryReadAndDecodeInstruction(ulong pc, uint flags, out byte[] opcode) in TryReadAndDecodeInstruction() argument
146 if(!cache.TryGetValue(key, out opcode)) in TryReadAndDecodeInstruction()
152 opcode = new byte[0] { }; in TryReadAndDecodeInstruction()
154 cache.Add(key, opcode); in TryReadAndDecodeInstruction()
158 opcode = decodedOpcode; in TryReadAndDecodeInstruction()
[all …]
DTraceBasedModelFlatBufferWriter.cs51 var opcode = Misc.HexStringToByteArray(result.OpcodeString.Trim(), true); in Write()
53 instructionsBuffer.Add(new InstructionTrace(result, opcode, additionalData)); in Write()
97 …onFlatbuffer(FlatBufferBuilder builder, DisassemblyResult result, byte[] opcode, List<AdditionalDa… in BuildInstructionFlatbuffer() argument
190 Instruction.AddOpcode(builder, BitHelper.ToUInt32(opcode, 0, opcode.Length, false)); in BuildInstructionFlatbuffer()
218 …public InstructionTrace(DisassemblyResult result, byte[] opcode, List<AdditionalData> additionalDa… in InstructionTrace() argument
221 Opcode = opcode; in InstructionTrace()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/Disassembler/
DLLVMDisassembler.cs37 …public bool TryDecodeInstruction(ulong pc, byte[] memory, uint flags, out byte[] opcode, int memor… in TryDecodeInstruction() argument
39 … return GetDisassembler(flags).TryDecodeInstruction(pc, memory, flags, out opcode, memoryOffset); in TryDecodeInstruction()
185 …public bool TryDecodeInstruction(ulong pc, byte[] memory, uint flags, out byte[] opcode, int memor… in TryDecodeInstruction() argument
189 opcode = new byte[0]; in TryDecodeInstruction()
193 opcode = Misc.HexStringToByteArray(result.OpcodeString.Trim(), true); in TryDecodeInstruction()
352 …public bool TryDecodeInstruction(ulong pc, byte[] memory, uint flags, out byte[] opcode, int memor… in TryDecodeInstruction() argument
356 opcode = new byte[0]; in TryDecodeInstruction()
360 opcode = Misc.HexStringToByteArray(result.OpcodeString, true); in TryDecodeInstruction()
374 …public bool TryDecodeInstruction(ulong pc, byte[] memory, uint flags, out byte[] opcode, int memor… in TryDecodeInstruction() argument
379 opcode = new byte[0]; in TryDecodeInstruction()
[all …]
DIDisassembler.cs15 …bool TryDecodeInstruction(ulong pc, byte[] memory, uint flags, out byte[] opcode, int memoryOffset… in TryDecodeInstruction() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/
DTranslationCPU_OpcodesCounting.cs37 Misc.TryParseBitPattern(pattern, out var opcode, out var mask); in InstallOpcodeCounterPattern()
39 InstallOpcodeCounterPattern(name, opcode, mask); in InstallOpcodeCounterPattern()
42 public void InstallOpcodeCounterPattern(string name, ulong opcode, ulong mask) in InstallOpcodeCounterPattern() argument
49 var id = TlibInstallOpcodeCounter(opcode, mask); in InstallOpcodeCounterPattern()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/
DTegraDmaHost1X.cs42 var opcode = ((vl >> 28) & 0xF); in Execute_DMA()
44 switch (opcode) { in Execute_DMA()
80 this.Log(LogLevel.Warning, "Opcode 0x{0:X} UNSUPPORTED!", opcode); in Execute_DMA()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DMPFS_SystemServices.cs84 private void HandleRequest(Commands opcode, uint offset) in HandleRequest() argument
88 switch(opcode) in HandleRequest()
97 this.Log(LogLevel.Warning, "Unknown request: {0}", opcode); in HandleRequest()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Storage/
DUFSDevice.cs229 var opcode = (SCSICommand)cdb[0]; in HandleSCSICommand()
230 switch(opcode) in HandleSCSICommand()
274 …is.Log(LogLevel.Warning, "Unhandled SCSI command: {0}", Enum.GetName(typeof(SCSICommand), opcode)); in HandleSCSICommand()
554 var opcode = (QueryFunctionOpcode)transactionSpecificFieldsRequest[0]; in HandleQuery()
555 switch(opcode) in HandleQuery()
587 …pecificFieldsResponse = HandleQueryFunctionFlagOperation(transactionSpecificFieldsRequest, opcode); in HandleQuery()
609 …QueryResponse = IsValidQueryOpcode(request.QueryFunction, opcode) ? QueryResponseCode.Success : Qu… in HandleQuery()
817 private bool IsValidQueryOpcode(QueryFunction function, QueryFunctionOpcode opcode) in IsValidQueryOpcode() argument
820 && (opcode == QueryFunctionOpcode.WriteDescriptor in IsValidQueryOpcode()
821 || opcode == QueryFunctionOpcode.WriteAttribute in IsValidQueryOpcode()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ExecutionTracer/FBInstruction/
Dinstruction.fbs5 opcode: uint32;
DInstruction.cs63 uint opcode = 0, in CreateInstruction()
89 Instruction.AddOpcode(builder, opcode); in CreateInstruction()
101 …blic static void AddOpcode(FlatBufferBuilder builder, uint opcode) { builder.AddUint(1, opcode, 0)… in AddOpcode()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/opcodes/
Dopcodes-rv32i2 # <instruction name> <args> <opcode>
4 # <opcode> is given by specifying one or more range/value pairs:
Dopcodes-rvk3 # This file contains opcode specifications for the RISC-V
Dopcodes-rv32k3 # This file contains opcode specifications for the RISC-V
Dopcodes-rv64k3 # This file contains opcode specifications for the RISC-V
Dopcodes-rvv2 # <instruction name> <args> <opcode>
4 # <opcode> is given by specifying one or more range/value pairs:
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/MSP430X/
DMSP430X.cs1101 var opcode = (instr & 0xF000) >> 12; in TryEvaluateDoubleOperand()
1121 switch(opcode) in TryEvaluateDoubleOperand()
1255 var opcode = (instr & 0xF000) >> 12; in EvaluateNextOpcode()
1256 if(opcode == 0x2 || opcode == 0x3) in EvaluateNextOpcode()