mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-30 03:04:50 +01:00
22 lines
672 B
C++
22 lines
672 B
C++
/* This file is part of the dynarmic project.
|
|
* Copyright (c) 2016 MerryMage
|
|
* SPDX-License-Identifier: 0BSD
|
|
*/
|
|
|
|
#include <ostream>
|
|
#include <fmt/format.h>
|
|
#include "frontend/A32/location_descriptor.h"
|
|
|
|
namespace Dynarmic::A32 {
|
|
|
|
std::ostream& operator<<(std::ostream& o, const LocationDescriptor& descriptor) {
|
|
o << fmt::format("{{{:08x},{},{},{:08x}{}}}",
|
|
descriptor.PC(),
|
|
descriptor.TFlag() ? "T" : "!T",
|
|
descriptor.EFlag() ? "E" : "!E",
|
|
descriptor.FPSCR().Value(),
|
|
descriptor.SingleStepping() ? ",step" : "");
|
|
return o;
|
|
}
|
|
|
|
} // namespace Dynarmic::A32
|