dynarmic/src/frontend/A64/translate/impl/exception_generating.cpp

20 lines
599 B
C++
Raw Normal View History

2018-01-09 21:29:21 +00:00
/* This file is part of the dynarmic project.
* Copyright (c) 2018 MerryMage
* This software may be used and distributed according to the terms of the GNU
* General Public License version 2 or any later version.
*/
#include "frontend/A64/translate/impl/impl.h"
namespace Dynarmic::A64 {
2018-01-09 21:29:21 +00:00
bool TranslatorVisitor::SVC(Imm<16> imm16) {
2018-02-11 22:53:46 +00:00
ir.PushRSB(ir.current_location->AdvancePC(4));
ir.SetPC(ir.Imm64(ir.current_location->PC() + 4));
2018-01-09 21:29:21 +00:00
ir.CallSupervisor(imm16.ZeroExtend());
ir.SetTerm(IR::Term::CheckHalt{IR::Term::PopRSBHint{}});
return false;
}
} // namespace Dynarmic::A64