diff mbox series

target/i386/tcg: remove unused enum

Message ID 20240627105919.981453-1-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series target/i386/tcg: remove unused enum | expand

Commit Message

Paolo Bonzini June 27, 2024, 10:59 a.m. UTC
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 target/i386/tcg/translate.c | 16 ----------------
 1 file changed, 16 deletions(-)

Comments

Zhao Liu June 27, 2024, 11:49 a.m. UTC | #1
On Thu, Jun 27, 2024 at 12:59:19PM +0200, Paolo Bonzini wrote:
> Date: Thu, 27 Jun 2024 12:59:19 +0200
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH] target/i386/tcg: remove unused enum
> X-Mailer: git-send-email 2.45.2
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  target/i386/tcg/translate.c | 16 ----------------
>  1 file changed, 16 deletions(-)
>

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Richard Henderson June 27, 2024, 2:59 p.m. UTC | #2
On 6/27/24 03:59, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   target/i386/tcg/translate.c | 16 ----------------
>   1 file changed, 16 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

> 
> diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
> index 257110ac703..aeb7bc4d51b 100644
> --- a/target/i386/tcg/translate.c
> +++ b/target/i386/tcg/translate.c
> @@ -282,22 +282,6 @@ enum {
>       JCC_LE,
>   };
>   
> -enum {
> -    /* I386 int registers */
> -    OR_EAX,   /* MUST be even numbered */
> -    OR_ECX,
> -    OR_EDX,
> -    OR_EBX,
> -    OR_ESP,
> -    OR_EBP,
> -    OR_ESI,
> -    OR_EDI,
> -
> -    OR_TMP0 = 16,    /* temporary operand register */
> -    OR_TMP1,
> -    OR_A0, /* temporary register used when doing address evaluation */
> -};
> -
>   enum {
>       USES_CC_DST  = 1,
>       USES_CC_SRC  = 2,
diff mbox series

Patch

diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
index 257110ac703..aeb7bc4d51b 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -282,22 +282,6 @@  enum {
     JCC_LE,
 };
 
-enum {
-    /* I386 int registers */
-    OR_EAX,   /* MUST be even numbered */
-    OR_ECX,
-    OR_EDX,
-    OR_EBX,
-    OR_ESP,
-    OR_EBP,
-    OR_ESI,
-    OR_EDI,
-
-    OR_TMP0 = 16,    /* temporary operand register */
-    OR_TMP1,
-    OR_A0, /* temporary register used when doing address evaluation */
-};
-
 enum {
     USES_CC_DST  = 1,
     USES_CC_SRC  = 2,