disas/nanomips: Remove namespace img

Since there's no namespace feature in C, namespace img has been replaced
with adding the prefix "img" to the namespace members.

Prefix "img" has been added to the function names of functions that used
to be wrapped in namespace img. Those are img::format() functions.
I.e. replaced img::format with the img_format.

Typedef address that used to belong to namespace img now is called
img_address.

Signed-off-by: Milica Lazarevic <milica.lazarevic@syrmia.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220912122635.74032-2-milica.lazarevic@syrmia.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
master
Milica Lazarevic 2022-09-12 14:26:12 +02:00 committed by Philippe Mathieu-Daudé
parent 8466405eb0
commit c52316925c
2 changed files with 712 additions and 731 deletions

File diff suppressed because it is too large Load Diff

View File

@ -29,11 +29,7 @@ typedef int64_t int64;
typedef uint64_t uint64;
typedef uint32_t uint32;
typedef uint16_t uint16;
namespace img
{
typedef uint64_t address;
}
typedef uint64_t img_address;
class NMD
@ -70,7 +66,7 @@ public:
};
NMD(img::address pc, TABLE_ATTRIBUTE_TYPE requested_instruction_categories)
NMD(img_address pc, TABLE_ATTRIBUTE_TYPE requested_instruction_categories)
: m_pc(pc)
, m_requested_instruction_categories(requested_instruction_categories)
{
@ -81,7 +77,7 @@ public:
private:
img::address m_pc;
img_address m_pc;
TABLE_ATTRIBUTE_TYPE m_requested_instruction_categories;
typedef std::string(NMD:: *disassembly_function)(uint64 instruction);