summaryrefslogtreecommitdiff
path: root/src/arch/operands/register.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-08-24 21:53:52 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-08-24 21:53:52 (GMT)
commitce46ff64c00a90d03e2481dcaf1e713f22b71492 (patch)
tree5419bb07b142e34f882478c3f515644f45eaf3ae /src/arch/operands/register.c
parentebc0f829af60263fd5329f1a44f6c1e1162f97af (diff)
Serialize registers when needed.
Diffstat (limited to 'src/arch/operands/register.c')
-rw-r--r--src/arch/operands/register.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/operands/register.c b/src/arch/operands/register.c
index 9c0a337..8cfe39f 100644
--- a/src/arch/operands/register.c
+++ b/src/arch/operands/register.c
@@ -338,7 +338,7 @@ static bool g_register_operand_unserialize(GRegisterOperand *operand, GAsmStorag
if (result)
{
- reg = g_arch_register_load(storage, &reg_pbuf);
+ reg = NULL;//g_arch_register_load(storage, &reg_pbuf);
result = (reg != NULL);
}
@@ -383,7 +383,7 @@ static bool g_register_operand_serialize(const GRegisterOperand *operand, GAsmSt
{
init_packed_buffer(&reg_pbuf);
- result = g_arch_register_store(operand->reg, storage, &reg_pbuf);
+ result = false;//g_arch_register_store(operand->reg, storage, &reg_pbuf);
if (result)
result = g_asm_storage_store_register_data(storage, &reg_pbuf, &pos);