2018-01-01 16:23:56 +01:00
|
|
|
/* This file is part of the dynarmic project.
|
|
|
|
|
* Copyright (c) 2016 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 <ostream>
|
|
|
|
|
#include <fmt/format.h>
|
|
|
|
|
#include "frontend/A32/location_descriptor.h"
|
|
|
|
|
|
2018-01-26 14:51:48 +01:00
|
|
|
namespace Dynarmic::A32 {
|
2018-01-01 16:23:56 +01:00
|
|
|
|
2019-05-24 07:59:04 +02:00
|
|
|
std::ostream& operator<<(std::ostream& o, const LocationDescriptor& descriptor) {
|
2018-08-25 23:56:54 +02:00
|
|
|
o << fmt::format("{{{:08x},{},{},{:08x}}}",
|
2019-05-24 07:59:04 +02:00
|
|
|
descriptor.PC(),
|
|
|
|
|
descriptor.TFlag() ? "T" : "!T",
|
|
|
|
|
descriptor.EFlag() ? "E" : "!E",
|
|
|
|
|
descriptor.FPSCR().Value());
|
2018-01-01 16:23:56 +01:00
|
|
|
return o;
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-26 14:51:48 +01:00
|
|
|
} // namespace Dynarmic::A32
|