qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 951c63: tcg: Move some opcode generation func


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 951c63: tcg: Move some opcode generation functions out of ...
Date: Fri, 13 Feb 2015 05:00:07 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 951c6300f74ace35d87c079affc57cfc513a6a35
      
https://github.com/qemu/qemu/commit/951c6300f74ace35d87c079affc57cfc513a6a35
  Author: Richard Henderson <address@hidden>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M Makefile.target
    A tcg/tcg-op.c
    M tcg/tcg-op.h
    M tcg/tcg.c
    M tcg/tcg.h

  Log Message:
  -----------
  tcg: Move some opcode generation functions out of line

Some of these functions are really quite large.  We have a number of
things that ought to be circularly dependent, but we duplicated code
to break that chain for the inlines.

This saved 25% of the code size of one of the translators I examined.

Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>


  Commit: 3a13c3f34ce2058e0c2decc3b0f9f56be24c9400
      
https://github.com/qemu/qemu/commit/3a13c3f34ce2058e0c2decc3b0f9f56be24c9400
  Author: Richard Henderson <address@hidden>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M tcg/tcg-op.c

  Log Message:
  -----------
  tcg: Reduce ifdefs in tcg-op.c

Almost completely eliminates the ifdefs in this file, improving
confidence in the lesser used 32-bit builds.

Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>


  Commit: 0a7df5da986bd7ee0789f2d7b8611f2e8eee5046
      
https://github.com/qemu/qemu/commit/0a7df5da986bd7ee0789f2d7b8611f2e8eee5046
  Author: Richard Henderson <address@hidden>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M include/exec/gen-icount.h
    M target-alpha/translate.c
    M target-arm/translate-a64.c
    M target-arm/translate.c
    M target-cris/translate.c
    M target-i386/translate.c
    M target-lm32/translate.c
    M target-m68k/translate.c
    M target-microblaze/translate.c
    M target-mips/translate.c
    M target-moxie/translate.c
    M target-openrisc/translate.c
    M target-ppc/translate.c
    M target-s390x/translate.c
    M target-sh4/translate.c
    M target-sparc/translate.c
    M target-tricore/translate.c
    M target-unicore32/translate.c
    M target-xtensa/translate.c

  Log Message:
  -----------
  tcg: Move emit of INDEX_op_end into gen_tb_end

Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>


  Commit: fe700adb3db5b028b504423b946d4ee5200a8f2f
      
https://github.com/qemu/qemu/commit/fe700adb3db5b028b504423b946d4ee5200a8f2f
  Author: Richard Henderson <address@hidden>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M target-alpha/translate.c
    M target-arm/translate-a64.c
    M target-arm/translate.c
    M target-cris/translate.c
    M target-i386/translate.c
    M target-lm32/translate.c
    M target-m68k/translate.c
    M target-microblaze/translate.c
    M target-mips/translate.c
    M target-moxie/translate.c
    M target-openrisc/translate.c
    M target-ppc/translate.c
    M target-s390x/translate.c
    M target-sh4/translate.c
    M target-sparc/translate.c
    M target-tricore/translate.c
    M target-unicore32/translate.c
    M target-xtensa/translate.c
    M tcg/tcg.h

  Log Message:
  -----------
  tcg: Introduce tcg_op_buf_count and tcg_op_buf_full

The method by which we count the number of ops emitted
is going to change.  Abstract that away into some inlines.

Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>


  Commit: c45cb8bb89fc798489869982c4c463b26ce43d7b
      
https://github.com/qemu/qemu/commit/c45cb8bb89fc798489869982c4c463b26ce43d7b
  Author: Richard Henderson <address@hidden>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M include/exec/gen-icount.h
    M tcg/optimize.c
    M tcg/tcg-op.c
    M tcg/tcg.c
    M tcg/tcg.h

  Log Message:
  -----------
  tcg: Put opcodes in a linked list

The previous setup required ops and args to be completely sequential,
and was error prone when it came to both iteration and optimization.

Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>


  Commit: 0c627cdca20155753a536c51385abb73941a59a0
      
https://github.com/qemu/qemu/commit/0c627cdca20155753a536c51385abb73941a59a0
  Author: Richard Henderson <address@hidden>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M tcg/optimize.c
    M tcg/tcg.c
    M tcg/tcg.h

  Log Message:
  -----------
  tcg: Remove opcodes instead of noping them out

With the linked list scheme we need not leave nops in the stream
that we need to process later.

Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>


  Commit: a4ce099a7a4b4734c372f6bf28f3362e370f23c1
      
https://github.com/qemu/qemu/commit/a4ce099a7a4b4734c372f6bf28f3362e370f23c1
  Author: Richard Henderson <address@hidden>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M tcg/optimize.c
    M tcg/tcg-op.c
    M tcg/tcg-op.h

  Log Message:
  -----------
  tcg: Implement insert_op_before

Rather reserving space in the op stream for optimization,
let the optimizer add ops as necessary.

Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>


  Commit: 15fc7daa770764cc795158cbb525569f156f3659
      
https://github.com/qemu/qemu/commit/15fc7daa770764cc795158cbb525569f156f3659
  Author: Richard Henderson <address@hidden>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M tcg/tcg-opc.h
    M tcg/tcg.c
    M tci.c

  Log Message:
  -----------
  tcg: Remove unused opcodes

We no longer need INDEX_op_end to terminate the list, nor do we
need 5 forms of nop, since we just remove the TCGOp instead.

Reviewed-by: Bastian Koppelmann <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>


  Commit: cd2d5541271f1934345d8ca42f5fafff1744eee7
      
https://github.com/qemu/qemu/commit/cd2d5541271f1934345d8ca42f5fafff1744eee7
  Author: Peter Maydell <address@hidden>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M Makefile.target
    M include/exec/gen-icount.h
    M target-alpha/translate.c
    M target-arm/translate-a64.c
    M target-arm/translate.c
    M target-cris/translate.c
    M target-i386/translate.c
    M target-lm32/translate.c
    M target-m68k/translate.c
    M target-microblaze/translate.c
    M target-mips/translate.c
    M target-moxie/translate.c
    M target-openrisc/translate.c
    M target-ppc/translate.c
    M target-s390x/translate.c
    M target-sh4/translate.c
    M target-sparc/translate.c
    M target-tricore/translate.c
    M target-unicore32/translate.c
    M target-xtensa/translate.c
    M tcg/optimize.c
    A tcg/tcg-op.c
    M tcg/tcg-op.h
    M tcg/tcg-opc.h
    M tcg/tcg.c
    M tcg/tcg.h
    M tci.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20150212' into staging

Convert to linked list.

# gpg: Signature made Fri 13 Feb 2015 05:40:41 GMT using RSA key ID 4DD0279B
# gpg: Good signature from "Richard Henderson <address@hidden>"
# gpg:                 aka "Richard Henderson <address@hidden>"
# gpg:                 aka "Richard Henderson <address@hidden>"

* remotes/rth/tags/pull-tcg-20150212:
  tcg: Remove unused opcodes
  tcg: Implement insert_op_before
  tcg: Remove opcodes instead of noping them out
  tcg: Put opcodes in a linked list
  tcg: Introduce tcg_op_buf_count and tcg_op_buf_full
  tcg: Move emit of INDEX_op_end into gen_tb_end
  tcg: Reduce ifdefs in tcg-op.c
  tcg: Move some opcode generation functions out of line

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/e344e7afc1a0...cd2d5541271f

reply via email to

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