qemu
16 years agoFix VNC update regoin height.
balrog [Sun, 25 May 2008 00:38:47 +0000 (00:38 +0000)]
Fix VNC update regoin height.

'h' actually is the coordinate of bottom of the rectangle and not height.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4571 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix off-by-one unwinding error.
pbrook [Sun, 25 May 2008 00:36:06 +0000 (00:36 +0000)]
Fix off-by-one unwinding error.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4570 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoInvalidate VNC framebuffer on every resize.
balrog [Sun, 25 May 2008 00:14:34 +0000 (00:14 +0000)]
Invalidate VNC framebuffer on every resize.

On a resize, vncviewer keeps the image in the upper-left part of the screen
unmodified and fills the right end of the lines with black colour.  vnc.c       keeps the first n bytes of the framebuffer unmodified instead - meaning that
the client's image doesn't match the image in framebuffer and checking
for dirty rows gives wrong results.  We can either invalidate the whole
buffer or implement the same transformation as the client.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4569 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoTab-complete arguments for "logfile" in the monitor.
balrog [Sat, 24 May 2008 23:15:46 +0000 (23:15 +0000)]
Tab-complete arguments for "logfile" in the monitor.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4568 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoRelax a constraint for qemu_ld64 on ARM host.
balrog [Sat, 24 May 2008 23:12:19 +0000 (23:12 +0000)]
Relax a constraint for qemu_ld64 on ARM host.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4567 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix a deadly typo, correct comments.
balrog [Sat, 24 May 2008 22:56:51 +0000 (22:56 +0000)]
Fix a deadly typo, correct comments.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4566 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoConvert m68k target to TCG.
pbrook [Sat, 24 May 2008 22:29:16 +0000 (22:29 +0000)]
Convert m68k target to TCG.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4565 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix ARM host TLB.
pbrook [Sat, 24 May 2008 20:07:07 +0000 (20:07 +0000)]
Fix ARM host TLB.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4564 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix mov[tf].ps handling for MIPS, by Richard Sandiford.
ths [Sat, 24 May 2008 19:46:23 +0000 (19:46 +0000)]
Fix mov[tf].ps handling for MIPS, by Richard Sandiford.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4563 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoUn-break MIPS conditional moves, by Richard Sandiford.
ths [Sat, 24 May 2008 19:06:07 +0000 (19:06 +0000)]
Un-break MIPS conditional moves, by Richard Sandiford.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4562 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoImplement 64-bit constant loads
blueswir1 [Sat, 24 May 2008 18:09:50 +0000 (18:09 +0000)]
Implement 64-bit constant loads

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4561 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoUse sethi and arith functions, fix comment
blueswir1 [Sat, 24 May 2008 18:06:35 +0000 (18:06 +0000)]
Use sethi and arith functions, fix comment

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4560 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix stack offsets and alignment
blueswir1 [Sat, 24 May 2008 16:41:17 +0000 (16:41 +0000)]
Fix stack offsets and alignment

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4559 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoETRAX: Correct check for second nic.
edgar_igl [Sat, 24 May 2008 16:03:59 +0000 (16:03 +0000)]
ETRAX: Correct check for second nic.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4558 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoDont try to keep the tlb and the jmp cache synchronized.
edgar_igl [Sat, 24 May 2008 16:00:05 +0000 (16:00 +0000)]
Dont try to keep the tlb and the jmp cache synchronized.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4557 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix A20 debug dumps.
pbrook [Sat, 24 May 2008 14:48:38 +0000 (14:48 +0000)]
Fix A20 debug dumps.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4556 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoDynamically allocate tbs. Avoids branch range problems on RISC hosts.
pbrook [Sat, 24 May 2008 13:56:15 +0000 (13:56 +0000)]
Dynamically allocate tbs.  Avoids branch range problems on RISC hosts.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4555 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoDefine stack offsets
blueswir1 [Sat, 24 May 2008 05:36:16 +0000 (05:36 +0000)]
Define stack offsets

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4554 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoMore TCGv type fixes.
pbrook [Sat, 24 May 2008 02:24:25 +0000 (02:24 +0000)]
More TCGv type fixes.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4553 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix ARM conditional branch bug.
pbrook [Sat, 24 May 2008 02:22:00 +0000 (02:22 +0000)]
Fix ARM conditional branch bug.
Add tcg_gen_brcondi.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4552 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix helper operand type mismatch.
pbrook [Sat, 24 May 2008 02:12:32 +0000 (02:12 +0000)]
Fix helper operand type mismatch.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4551 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix bogus test syntax.
pbrook [Fri, 23 May 2008 23:16:42 +0000 (23:16 +0000)]
Fix bogus test syntax.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4550 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix parallel builds for dyngen, by Jason Wessel.
ths [Fri, 23 May 2008 19:19:55 +0000 (19:19 +0000)]
Fix parallel builds for dyngen, by Jason Wessel.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4549 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoComment non-obvious calculation. Don't clobber r3 in qemu_st64.
balrog [Fri, 23 May 2008 18:51:15 +0000 (18:51 +0000)]
Comment non-obvious calculation.  Don't clobber r3 in qemu_st64.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4548 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoA branch insn must not overwrite the branch target before relocation.
balrog [Fri, 23 May 2008 18:50:44 +0000 (18:50 +0000)]
A branch insn must not overwrite the branch target before relocation.

When a branch to label is translated it generates a reloc that is filled in
when the label is translated.  However, when handling an exception and
searching for the pc we abort the translation early and we sometimes
translate the branch but not the corresponding label and so no relocation
is done.  When the block is executed again the branch points to no-where.

It seems tcg/sparc/ is going to suffer from the same issue.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4547 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoSwithc some MIPS CP0 accesses to TCG.
ths [Fri, 23 May 2008 18:10:51 +0000 (18:10 +0000)]
Swithc some MIPS CP0 accesses to TCG.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4546 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoSwitch MIPS movf/movt to TCG.
ths [Fri, 23 May 2008 18:06:27 +0000 (18:06 +0000)]
Switch MIPS movf/movt to TCG.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4545 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoadded tcg_temp_free() and improved the handling of constants
bellard [Fri, 23 May 2008 17:33:39 +0000 (17:33 +0000)]
added tcg_temp_free() and improved the handling of constants

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4544 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix build failure with old kernel headers (loop.h is incompatible with
pbrook [Fri, 23 May 2008 16:06:43 +0000 (16:06 +0000)]
Fix build failure with old kernel headers (loop.h is incompatible with
glibc headers).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4543 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix qemu_ld/st for mem_index > 0 on arm host.
balrog [Fri, 23 May 2008 12:55:11 +0000 (12:55 +0000)]
Fix qemu_ld/st for mem_index > 0 on arm host.

offsetof(CPUState, tlb_table[mem_index][0].addr_read) with mem_index > 0
was larger than max immediate offset for ldr and str (12-bit) so insert an
additional insn to add the mem_index offset.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4542 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoDefine TCG_TARGET_CALL_STACK_OFFSET on arm.
balrog [Fri, 23 May 2008 12:47:22 +0000 (12:47 +0000)]
Define TCG_TARGET_CALL_STACK_OFFSET on arm.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4541 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agocompilation fix
bellard [Fri, 23 May 2008 11:58:32 +0000 (11:58 +0000)]
compilation fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4540 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoremoved warning
bellard [Fri, 23 May 2008 11:56:45 +0000 (11:56 +0000)]
removed warning

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4539 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoTCG profiler clean up
bellard [Fri, 23 May 2008 09:57:34 +0000 (09:57 +0000)]
TCG profiler clean up

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4538 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoprofiler clean up
bellard [Fri, 23 May 2008 09:52:20 +0000 (09:52 +0000)]
profiler clean up

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4537 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix build failure for MIPS64 targets on 64-bit hosts.
ths [Fri, 23 May 2008 01:31:57 +0000 (01:31 +0000)]
Fix build failure for MIPS64 targets on 64-bit hosts.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4536 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoDelete dead code.
ths [Thu, 22 May 2008 20:42:15 +0000 (20:42 +0000)]
Delete dead code.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4535 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoRegister op helpers
blueswir1 [Thu, 22 May 2008 18:16:25 +0000 (18:16 +0000)]
Register op helpers

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4534 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoSwitch MIPS branch handling to TCG, and clean out pointless wrapper
ths [Thu, 22 May 2008 17:46:10 +0000 (17:46 +0000)]
Switch MIPS branch handling to TCG, and clean out pointless wrapper
functions/macros.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4533 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agouse debug_insn_start to have nicer debug traces
bellard [Thu, 22 May 2008 17:00:49 +0000 (17:00 +0000)]
use debug_insn_start to have nicer debug traces

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4532 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoadded debug_insn_start debug instruction
bellard [Thu, 22 May 2008 16:56:05 +0000 (16:56 +0000)]
added debug_insn_start debug instruction

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4531 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoproper helper definition registering (all targets must do that)
bellard [Thu, 22 May 2008 16:11:04 +0000 (16:11 +0000)]
proper helper definition registering (all targets must do that)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4530 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agodebug output: write helper names
bellard [Thu, 22 May 2008 16:08:32 +0000 (16:08 +0000)]
debug output: write helper names

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4529 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agomore generic call codegen
bellard [Thu, 22 May 2008 14:59:57 +0000 (14:59 +0000)]
more generic call codegen

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4528 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agofixed zero shifts (64 bit case)
bellard [Thu, 22 May 2008 14:39:25 +0000 (14:39 +0000)]
fixed zero shifts (64 bit case)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4527 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix block-vmdk.c:vmdk_close() use-after-free, by Ed Maste.
ths [Thu, 22 May 2008 13:51:48 +0000 (13:51 +0000)]
Fix block-vmdk.c:vmdk_close() use-after-free, by Ed Maste.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4526 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agosmall shift opts
bellard [Thu, 22 May 2008 13:25:14 +0000 (13:25 +0000)]
small shift opts

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4525 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agooptimization of shifts by a constant
bellard [Thu, 22 May 2008 12:36:31 +0000 (12:36 +0000)]
optimization of shifts by a constant

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4524 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agolahf/sahf cpuid test
bellard [Thu, 22 May 2008 10:13:38 +0000 (10:13 +0000)]
lahf/sahf cpuid test

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4523 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agocmpxchg8b fix - added cmpxchg16b
bellard [Thu, 22 May 2008 09:52:38 +0000 (09:52 +0000)]
cmpxchg8b fix - added cmpxchg16b

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4522 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agocmpxchg 64 bit fix
bellard [Thu, 22 May 2008 09:36:08 +0000 (09:36 +0000)]
cmpxchg 64 bit fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4521 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agofxsave/fxrstor 64 bit fix
bellard [Thu, 22 May 2008 09:20:43 +0000 (09:20 +0000)]
fxsave/fxrstor 64 bit fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4520 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agodisabled dyngen for x86 target
bellard [Wed, 21 May 2008 19:17:29 +0000 (19:17 +0000)]
disabled dyngen for x86 target

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4519 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted conditional jumps, SET and CMOVx to TCG
bellard [Wed, 21 May 2008 19:16:45 +0000 (19:16 +0000)]
converted conditional jumps, SET and CMOVx to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4518 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoremoved unused defines
bellard [Wed, 21 May 2008 19:12:19 +0000 (19:12 +0000)]
removed unused defines

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4517 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted env access to TCG
bellard [Wed, 21 May 2008 17:16:11 +0000 (17:16 +0000)]
converted env access to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4516 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconvert eflags manipulation insns to TCG
bellard [Wed, 21 May 2008 17:07:20 +0000 (17:07 +0000)]
convert eflags manipulation insns to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4515 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconvert remaining segment handling to TCG
bellard [Wed, 21 May 2008 16:34:06 +0000 (16:34 +0000)]
convert remaining segment handling to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4514 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted LSL/LAR/VERW/VERR to TCG - force 16 bit memory access for LSL/LAR
bellard [Wed, 21 May 2008 16:25:27 +0000 (16:25 +0000)]
converted LSL/LAR/VERW/VERR to TCG - force 16 bit memory access for LSL/LAR

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4513 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agofixed dead global variable update
bellard [Wed, 21 May 2008 16:24:20 +0000 (16:24 +0000)]
fixed dead global variable update

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4512 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agosuppressed no longer used ops
bellard [Wed, 21 May 2008 13:34:27 +0000 (13:34 +0000)]
suppressed no longer used ops

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4511 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted INTO/CMPXCHG8B to TCG
bellard [Wed, 21 May 2008 13:29:45 +0000 (13:29 +0000)]
converted INTO/CMPXCHG8B to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4510 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted BCD ops to TCG
bellard [Wed, 21 May 2008 13:24:30 +0000 (13:24 +0000)]
converted BCD ops to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4509 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted MUL/IMUL to TCG
bellard [Wed, 21 May 2008 10:12:54 +0000 (10:12 +0000)]
converted MUL/IMUL to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4508 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoSwitch MIPS clo/clz and the condition tests to TCG.
ths [Wed, 21 May 2008 02:04:15 +0000 (02:04 +0000)]
Switch MIPS clo/clz and the condition tests to TCG.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4507 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoSwitch MIPS movn/movz to TCG.
ths [Wed, 21 May 2008 02:02:39 +0000 (02:02 +0000)]
Switch MIPS movn/movz to TCG.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4506 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoRemove currently unnecessary alignment masking
blueswir1 [Tue, 20 May 2008 19:36:22 +0000 (19:36 +0000)]
Remove currently unnecessary alignment masking

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4505 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix 8-bit signed load/store and a typo.
balrog [Tue, 20 May 2008 11:28:35 +0000 (11:28 +0000)]
Fix 8-bit signed load/store and a typo.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4504 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoImplement neg_i32, clean-up.
balrog [Tue, 20 May 2008 11:26:40 +0000 (11:26 +0000)]
Implement neg_i32, clean-up.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4503 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoPrevent SEGV in VNC server for old clients (Anthony Liguori).
balrog [Tue, 20 May 2008 00:07:58 +0000 (00:07 +0000)]
Prevent SEGV in VNC server for old clients (Anthony Liguori).

If the client does not support the DesktopResize pseudo-encoding, then
vs->{width,height} may be smaller than ds->{width,height}.  dirty_row is
sized according to vs->{width,height}, not ds->{width,height}.

This patch makes sure to bound the update region to vs->{width,height} to
avoid a possible SEGV.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Reported-by: Marcelo Tosatti <mtosatti@redhat.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4502 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoRemove dyngen ARM code, which did't build.
balrog [Tue, 20 May 2008 00:01:55 +0000 (00:01 +0000)]
Remove dyngen ARM code, which did't build.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4501 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoARM host support for TCG targets.
balrog [Mon, 19 May 2008 23:59:38 +0000 (23:59 +0000)]
ARM host support for TCG targets.

Updated from previous version to use the tcg prologue/epilogue mechanism, may be slower than direct call.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4500 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix Sparc32 compilation broken by r4484
blueswir1 [Mon, 19 May 2008 17:20:01 +0000 (17:20 +0000)]
Fix Sparc32 compilation broken by r4484

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4499 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoBetter solution for the alignment problem
blueswir1 [Mon, 19 May 2008 16:32:18 +0000 (16:32 +0000)]
Better solution for the alignment problem

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4498 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoAdd file left out from previous commit.
ths [Sun, 18 May 2008 23:39:23 +0000 (23:39 +0000)]
Add file left out from previous commit.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4497 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoSwitch most MIPS logical and arithmetic instructions to TCG.
ths [Sun, 18 May 2008 22:50:49 +0000 (22:50 +0000)]
Switch most MIPS logical and arithmetic instructions to TCG.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4496 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix local register cache handling.
ths [Sun, 18 May 2008 22:15:12 +0000 (22:15 +0000)]
Fix local register cache handling.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4495 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted string OPs and LOOP insns to TCG
bellard [Sun, 18 May 2008 19:28:26 +0000 (19:28 +0000)]
converted string OPs and LOOP insns to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4494 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agofixed INC/DEC condition codes
bellard [Sun, 18 May 2008 19:19:57 +0000 (19:19 +0000)]
fixed INC/DEC condition codes

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4493 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoBoot tags setup needed by N800 proprietary bootloader.
balrog [Sun, 18 May 2008 13:58:19 +0000 (13:58 +0000)]
Boot tags setup needed by N800 proprietary bootloader.

This code is needed to make NOLO bootloader happy.  It is mostly guesses.
The tags are normally written by some early boot code that runs before NOLO.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4492 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoN810 keyboard slide open by default, add more comments.
balrog [Sun, 18 May 2008 13:14:29 +0000 (13:14 +0000)]
N810 keyboard slide open by default, add more comments.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4491 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoAdd N810 to allowed -M values, add documentation part for N8x0.
balrog [Sun, 18 May 2008 13:01:40 +0000 (13:01 +0000)]
Add N810 to allowed -M values, add documentation part for N8x0.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4490 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoCollapse omap peripherals on L4 bus into one io entry (temporarily).
balrog [Sun, 18 May 2008 12:14:41 +0000 (12:14 +0000)]
Collapse omap peripherals on L4 bus into one io entry (temporarily).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4489 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoETRAX: Connect both ethernet controllers.
edgar_igl [Sun, 18 May 2008 08:51:28 +0000 (08:51 +0000)]
ETRAX: Connect both ethernet controllers.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4488 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoETRAX: Add support for the ethernet receivers dest addr filters.
edgar_igl [Sun, 18 May 2008 08:50:32 +0000 (08:50 +0000)]
ETRAX: Add support for the ethernet receivers dest addr filters.
* Support the station address filters MA0 and MA1.
* Model the group address bloom filter.
* Indentation.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4487 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix constant checks on Sparc64 host
blueswir1 [Sun, 18 May 2008 08:11:14 +0000 (08:11 +0000)]
Fix constant checks on Sparc64 host

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4486 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix TCG alignment problems on Sparc64 host
blueswir1 [Sun, 18 May 2008 07:49:05 +0000 (07:49 +0000)]
Fix TCG alignment problems on Sparc64 host

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4485 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoFix Sparc64 host signal handling
blueswir1 [Sun, 18 May 2008 06:40:16 +0000 (06:40 +0000)]
Fix Sparc64 host signal handling

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4484 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoSupport signal reception in user-mode. Handle when the peer terminates or aborts...
edgar_igl [Sat, 17 May 2008 22:20:53 +0000 (22:20 +0000)]
Support signal reception in user-mode. Handle when the peer terminates or aborts the connection.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4483 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoTry to fix USB HID and make the HID reports readable.
balrog [Sat, 17 May 2008 19:55:28 +0000 (19:55 +0000)]
Try to fix USB HID and make the HID reports readable.

Decode HID report Items in the comments.
Invert mouse wheel direction as per Alexander Graf's report and as we already do in the tablet.
Clamp the Relative values to -127:127 as we claimed in the HID descriptors.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4482 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted sign extension ops to TCG
bellard [Sat, 17 May 2008 19:24:07 +0000 (19:24 +0000)]
converted sign extension ops to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4481 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoUse tcg_gen_not.
edgar_igl [Sat, 17 May 2008 19:11:14 +0000 (19:11 +0000)]
Use tcg_gen_not.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4480 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoMONITOR insn address generation fix - converted XLAT to TCG
bellard [Sat, 17 May 2008 19:05:28 +0000 (19:05 +0000)]
MONITOR insn address generation fix - converted XLAT to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4479 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoAdd support for the 'k' (kill) and 'D' (detach) packets (Jason Wessel).
edgar_igl [Sat, 17 May 2008 18:58:29 +0000 (18:58 +0000)]
Add support for the 'k' (kill) and 'D' (detach) packets (Jason Wessel).

Implement the 'k' gdbserial packet which kills the qemu instance via
the debugger stub.

Implement the 'D' detach packet for the gdb stub such that you can
disconnect gdb with the "detach" command.  This required implementing
a cpu_breakpoint_remove_all() and a cpu_watchpoint_remove_all()
function to cleanup all the breakpoints and watchpoints prior to
leaving the gdb stub else simulation can stop with no debugger
attached.

On a '?' packet remove all the breakpoints and watchpoints.  This is
considered more of a safety net in case you force killed gdb or it
crashed and you are reconnecting.  The identical behavior exists for
kgdb in the linux kernel.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4478 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoBSR/BSF TCG conversion
bellard [Sat, 17 May 2008 18:44:58 +0000 (18:44 +0000)]
BSR/BSF TCG conversion

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4477 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agomusicpal: Improve button handling (Jan Kiszka).
balrog [Sat, 17 May 2008 18:18:04 +0000 (18:18 +0000)]
musicpal: Improve button handling (Jan Kiszka).

Looking at the hold-button-on-powerup thing, I came across some
improvable parts in the MusicPal's button handling. This patch allows
for repeated wheel events by keying the arrow keys pressed, corrects
some constant name, and introduces an explicitly maintained GPIO_ISR
state.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4476 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoRemove arm's local not_i32 tcg op now that there's one in tcg.
balrog [Sat, 17 May 2008 18:15:04 +0000 (18:15 +0000)]
Remove arm's local not_i32 tcg op now that there's one in tcg.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4475 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoMissing include for Slirp on win32 (Eduardo Felipe).
balrog [Sat, 17 May 2008 18:07:00 +0000 (18:07 +0000)]
Missing include for Slirp on win32 (Eduardo Felipe).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4474 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agoconverted bit test operations to TCG
bellard [Sat, 17 May 2008 16:10:38 +0000 (16:10 +0000)]
converted bit test operations to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4473 c046a42c-6fe2-441c-8c8c-71466251a162

16 years agomoved eflags computation outside op.c
bellard [Sat, 17 May 2008 13:57:33 +0000 (13:57 +0000)]
moved eflags computation outside op.c

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4472 c046a42c-6fe2-441c-8c8c-71466251a162