qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 14/20] disas/nanomips: Remove function overloading


From: Richard Henderson
Subject: Re: [PATCH v2 14/20] disas/nanomips: Remove function overloading
Date: Mon, 5 Sep 2022 12:43:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 9/5/22 10:55, Milica Lazarevic wrote:
-static uint64 copy(uint64 d)
+static uint64 copy_ui(uint64 d)
  {
      return d;
  }
-static int64 copy(int64 d)
+static int64 copy_i(int64 d)
  {
      return d;
  }

These functions can surely just be removed.


-static char *IMMEDIATE(uint64 value)
+static char *IMMEDIATE_UI(uint64 value)
 {
     return img_format("0x%" PRIx64, value);
 }
-static char *IMMEDIATE(int64 value)
+static char *IMMEDIATE_I(int64 value)
 {
     return img_format("%" PRId64, value);
 }

And these would be removed by the previous conversion to direct use of printf values by the individual instructions.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]