Lines Matching refs:CMIPS

142 	assembler.ADDIU(CMIPS::SP, CMIPS::SP, -stackAlloc);  in PrepareOpenThunk()
143 assembler.SW(CMIPS::RA, 0x00, CMIPS::SP); in PrepareOpenThunk()
146 assembler.JALR(CMIPS::A3); in PrepareOpenThunk()
147 assembler.SW(CMIPS::T0, 0x04, CMIPS::SP); in PrepareOpenThunk()
151 assembler.BLTZ(CMIPS::V0, finishLabel); in PrepareOpenThunk()
152 assembler.LW(CMIPS::RA, 0x00, CMIPS::SP); in PrepareOpenThunk()
154 assembler.LW(CMIPS::V0, 0x04, CMIPS::SP); in PrepareOpenThunk()
157 assembler.JR(CMIPS::RA); in PrepareOpenThunk()
158 assembler.ADDIU(CMIPS::SP, CMIPS::SP, stackAlloc); in PrepareOpenThunk()
475 int32 CIoman::AddDrv(CMIPS& context) in AddDrv()
477 auto devicePtr = context.m_State.nGPR[CMIPS::A0].nV0; in AddDrv()
503 int32 CIoman::DevCtlVirtual(CMIPS& context) in DevCtlVirtual()
505 uint32 deviceNamePtr = context.m_State.nGPR[CMIPS::A0].nV0; in DevCtlVirtual()
506 uint32 commandId = context.m_State.nGPR[CMIPS::A1].nV0; in DevCtlVirtual()
507 uint32 inputPtr = context.m_State.nGPR[CMIPS::A2].nV0; in DevCtlVirtual()
508 uint32 inputSize = context.m_State.nGPR[CMIPS::A3].nV0; in DevCtlVirtual()
509 uint32 outputPtr = context.m_pMemoryMap->GetWord(context.m_State.nGPR[CMIPS::SP].nV0 + 0x10); in DevCtlVirtual()
510 uint32 outputSize = context.m_pMemoryMap->GetWord(context.m_State.nGPR[CMIPS::SP].nV0 + 0x14); in DevCtlVirtual()
730 int32 CIoman::OpenVirtual(CMIPS& context) in OpenVirtual()
732 uint32 pathPtr = context.m_State.nGPR[CMIPS::A0].nV0; in OpenVirtual()
733 uint32 flags = context.m_State.nGPR[CMIPS::A1].nV0; in OpenVirtual()
759 context.m_State.nGPR[CMIPS::A0].nV0 = descPtr; in OpenVirtual()
760 context.m_State.nGPR[CMIPS::A1].nV0 = pathPtr + devicePathPos + 1; in OpenVirtual()
761 context.m_State.nGPR[CMIPS::A2].nV0 = flags; in OpenVirtual()
762 context.m_State.nGPR[CMIPS::A3].nV0 = ops->openPtr; in OpenVirtual()
763 context.m_State.nGPR[CMIPS::T0].nV0 = handle; in OpenVirtual()
770 int32 CIoman::CloseVirtual(CMIPS& context) in CloseVirtual()
772 int32 handle = context.m_State.nGPR[CMIPS::A0].nV0; in CloseVirtual()
800 int32 CIoman::ReadVirtual(CMIPS& context) in ReadVirtual()
802 int32 handle = context.m_State.nGPR[CMIPS::A0].nV0; in ReadVirtual()
803 uint32 bufferPtr = context.m_State.nGPR[CMIPS::A1].nV0; in ReadVirtual()
804 uint32 count = context.m_State.nGPR[CMIPS::A2].nV0; in ReadVirtual()
831 int32 CIoman::WriteVirtual(CMIPS& context) in WriteVirtual()
833 int32 handle = context.m_State.nGPR[CMIPS::A0].nV0; in WriteVirtual()
834 uint32 bufferPtr = context.m_State.nGPR[CMIPS::A1].nV0; in WriteVirtual()
835 uint32 count = context.m_State.nGPR[CMIPS::A2].nV0; in WriteVirtual()
862 int32 CIoman::SeekVirtual(CMIPS& context) in SeekVirtual()
864 int32 handle = context.m_State.nGPR[CMIPS::A0].nV0; in SeekVirtual()
865 uint32 position = context.m_State.nGPR[CMIPS::A1].nV0; in SeekVirtual()
866 uint32 whence = context.m_State.nGPR[CMIPS::A2].nV0; in SeekVirtual()
894 void CIoman::InvokeUserDeviceMethod(CMIPS& context, uint32 devicePtr, size_t opOffset, uint32 arg0,… in InvokeUserDeviceMethod()
898 context.m_State.nGPR[CMIPS::A0].nV0 = arg0; in InvokeUserDeviceMethod()
899 context.m_State.nGPR[CMIPS::A1].nV0 = arg1; in InvokeUserDeviceMethod()
900 context.m_State.nGPR[CMIPS::A2].nV0 = arg2; in InvokeUserDeviceMethod()
945 void CIoman::Invoke(CMIPS& context, unsigned int functionId) in Invoke()
950 context.m_State.nGPR[CMIPS::V0].nD0 = static_cast<int32>(OpenVirtual(context)); in Invoke()
953 context.m_State.nGPR[CMIPS::V0].nD0 = static_cast<int32>(CloseVirtual(context)); in Invoke()
956 context.m_State.nGPR[CMIPS::V0].nD0 = static_cast<int32>(ReadVirtual(context)); in Invoke()
959 context.m_State.nGPR[CMIPS::V0].nD0 = static_cast<int32>(WriteVirtual(context)); in Invoke()
962 context.m_State.nGPR[CMIPS::V0].nD0 = static_cast<int32>(SeekVirtual(context)); in Invoke()
965 context.m_State.nGPR[CMIPS::V0].nD0 = static_cast<int32>(GetStat( in Invoke()
966 reinterpret_cast<char*>(&m_ram[context.m_State.nGPR[CMIPS::A0].nV[0]]), in Invoke()
967 reinterpret_cast<Ioman::STAT*>(&m_ram[context.m_State.nGPR[CMIPS::A1].nV[0]]))); in Invoke()
970 context.m_State.nGPR[CMIPS::V0].nD0 = static_cast<int32>(AddDrv(context)); in Invoke()
973 context.m_State.nGPR[CMIPS::V0].nD0 = static_cast<int32>(DelDrv( in Invoke()
974 context.m_State.nGPR[CMIPS::A0].nV0)); in Invoke()
977 context.m_State.nGPR[CMIPS::V0].nD0 = DevCtlVirtual(context); in Invoke()