aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* target-ppc: log instructions start in TCG codeAurelien Jarno2009-09-281-0/+2
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* target-mips: log instructions start in TCG codeAurelien Jarno2009-09-281-0/+4
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Win32: avoid a warningBlue Swirl2009-09-271-4/+4
| | | | | | GetLastError() returns a DWORD. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* BSD user: suppress a warningBlue Swirl2009-09-271-2/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* BSD user: implement GUEST_BASEBlue Swirl2009-09-273-0/+70
| | | | | | Based on 379f6698d73f476de38682b3ff96ecb226728c43. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* tcg/i386: generates dec/inc instead of sub/add when possibleAurelien Jarno2009-09-271-9/+15
| | | | | | | We must take care that dec/inc do not compute CF, which is needed by add2/sub2. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* tcg/i386: optimize and $0xff(ff), regAurelien Jarno2009-09-271-0/+6
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Compile some user files only once for all targetsBlue Swirl2009-09-274-18/+43
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* tcg/x86_64: generated dec/inc instead of sub/add when possibleAurelien Jarno2009-09-271-2/+14
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Don't compile roms if not building system targetsBlue Swirl2009-09-271-1/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix user emulator breakageBlue Swirl2009-09-271-4/+2
| | | | | | | | Fix breakage in the following conditions: - use in-tree building - build user targets after system targets Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* tcg/ppc: always use tcg_out_callmalc2009-09-271-20/+10
| | | | Signed-off-by: malc <av1474@comtv.ru>
* vl: Add failure check for SetEventmalc2009-09-271-1/+5
| | | | Signed-off-by: malc <av1474@comtv.ru>
* vl: Do not use perror after failed Win32 API callsmalc2009-09-271-3/+5
| | | | Signed-off-by: malc <av1474@comtv.ru>
* posix-aio-compat: avoid signal race when spawning a threadmalc2009-09-271-5/+9
| | | | Signed-off-by: malc <av1474@comtv.ru>
* target-i386: kill a tmp registerAurelien Jarno2009-09-271-4/+3
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* target-i386: use subfi instead of sub with a non-freed constantAurelien Jarno2009-09-271-7/+7
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* eepro100: Fix format strings in debug messagesStefan Weil2009-09-261-7/+7
| | | | | | | size_t arguments need %zu instead of %d. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* eepro100: Replace sprintf by snprintfStefan Weil2009-09-261-3/+3
| | | | | Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* eepro100: Remove unused codeStefan Weil2009-09-261-4/+0
| | | | | Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* eepro100: Enhanced logging and commentsStefan Weil2009-09-261-85/+130
| | | | | | | | * Use TRACE macro to allow different logging flags. * Add new debugging messages and clean existing ones. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* fix -daemonize with kvmMarcelo Tosatti2009-09-261-10/+10
| | | | | | | Otherwise fork might not inherit state initialized by kvm_init(). Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Set SDL icon_title when using `-name XXX` for proper gnome-panel window list ↵Dominic Evans2009-09-261-6/+10
| | | | | | | | | | | | | | integration qemu: improve sdl title information Include the `-name XXX` commandline param in the gnome-panel window list via icon_title. https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/423076 Signed-off-by: Dominic Evans <oldmanuk@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* qemu-option: rename bool -> booleanJuan Quintela2009-09-261-3/+3
| | | | | | | | We need this to allow the use of <stdbool.h> Signed-off-by: Juan Quintela <quintela@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* ARM back-end: Use sxt[bh] instructions for ext{8, 6}sLaurent Desnogues2009-09-261-0/+10
| | | | | | | This patch uses sxtb for ext8s_i32 and sxth for ext16s_i32 in ARM back-end. Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix and improve qint_from_int64_testPierre Riteau2009-09-261-2/+2
| | | | | | | | | | | | | | | | | Use a long long integer constant to fix a compilation error (integer constant is too large for 'long' type). Use a better value for testing, as -1 makes the test pass even if qi->value is of type uint32_t, float or double. This was suggested by Reimar Döffinger <Reimar.Doeffinger@gmx.de>. Also, make the test fail when qi->value is of type double or float by casting qi->value to int64_t, to avoid value being promoted to the type of qi->value. Signed-off-by: Pierre Riteau <Pierre.Riteau@irisa.fr> Acked-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* monitor: Fix do_wav_capture() argument typeLuiz Capitulino2009-09-261-1/+1
| | | | | | | | | Currently do_wav_capture() path's argument type is 's' (string), but it should be 'F' (filename), this way 'wavcapture' gets command completion. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* monitor: Fix do_commit() argument typeLuiz Capitulino2009-09-261-1/+1
| | | | | | | | Currently do_commit() argument type is 's' (string), but it should be 'B' (block), this way 'commit' gets command completion. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Don't redefine NULL, pleaseJuan Quintela2009-09-261-2/+0
| | | | | | | | | | Compiled (on linux) all the targets, and it compiled as expected. What platform needs this redefinition? Later, Juan. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix coding style issueMark McLoughlin2009-09-254-6/+6
| | | | | | | | | | | | | | | | | | | | | | | Replace: if (-1 == foo()) with: if (foo() == -1) While this coding style is not in direct contravention of our currently ratified CODING_STYLE treaty, it could be argued that the Article 3 of the European Convention on Human Rights (prohibiting torture and "inhuman or degrading treatment") reads on the matter. [This commit message was brought to you without humour, as is evidenced by the absence of any emoticons] Signed-off-by: Mark McLoughlin <markmc@redhat.com> Cc: Avi Kivity <avi@redhat.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Remove PARAMS() macroJuan Quintela2009-09-253-77/+73
| | | | | | | | Only two disassemblers (alpha and sh4) were still using it. Just remove its use there, and its aparations in dis-asm.h Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* __thread should be before real typeJuan Quintela2009-09-251-1/+1
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* gcc wants 1st static and then constJuan Quintela2009-09-253-4/+4
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Bring two last users of K&R definitions to ANSI c89Juan Quintela2009-09-252-77/+23
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* static and inline should came before the type of the functionsJuan Quintela2009-09-258-12/+12
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Use proper typedef syntaxJuan Quintela2009-09-251-2/+2
| | | | | | | Why this ever compiled is a mistery to me. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Revert "This files are compiled in libqemu.a now"Blue Swirl2009-09-251-0/+3
| | | | | | | | | | | This reverts commit fe6549dfd76c278dbcd788b3c15c5e6e5ed32190. tcg-runtime and host-utils are needed on 32 bit host and they are not part of libqemu.a. Thanks to Stefan Weil for reporting. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* fix use after freeGlauber Costa2009-09-251-1/+1
| | | | | | | | We are using the vs structure when it was just freed. Classic use after free, fix it. Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* unbreak usb pass-through on linux.Gerd Hoffmann2009-09-251-0/+2
| | | | | | | | | | | Changes: * Re-add the 'dev->fd = fd;' line which the qdev patches dropped by mistake. * call qdev_init() so the newly created usb device is plugged into a usb port and thus actually visible to the guest. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* clean: remove ide/*.o files on cleanJuan Quintela2009-09-251-1/+1
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* ARM host: fix generated blocks linkingLaurent Desnogues2009-09-251-1/+3
| | | | | | | | This patch fixes the linking of generated blocks on an ARM host. No need to say this brings a very nice speedup :-) Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix spelling in commentStefan Weil2009-09-251-1/+1
| | | | | | | | replace Convery -> Convert Cc: Paul Brook <paul@codesourcery.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Suppress some variants of English in commentsStefan Weil2009-09-254-7/+7
| | | | | | | Replace surpress, supress by suppress. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* sparc64-8bit-asiIgor V. Kovalenko2009-09-232-0/+6
| | | | | | | | | | | | | Sparc64 alternate space load/store helpers expect 8 bit ASI value, while wrasi implementation sign-extends ASI operand causing for example 0x80 to appear as 0xFFFFFF80. Resulting value falls out of switch in helpers and causes obscure load/store faults. - correct wrasi by masking lower 8 bits of xor result - use lower 8 bits of ASI register in helpers Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* target-mips: remove MAX_OP_PER_INSTR workaroundAurelien Jarno2009-09-231-2/+1
| | | | | | | Now that MAX_OP_PER_INSTR has been increased to a safer value, removed the target-mips specific workaround. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* exec-all.h: increase OPC_BUF_SIZEAurelien Jarno2009-09-231-1/+1
| | | | | | Increase OPC_BUF_SIZE to compensate the MAX_OP_PER_INSTR's increase. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* exec-all.h: increase MAX_OP_PER_INSTR to 96 from 64Aurelien Jarno2009-09-231-1/+1
| | | | | | | | | | The x86_64 ror instruction on a 32-bit host can generate up to 77 TCG ops. Some more space should be left for opc that are added at the end of the translation. Thanks to Laurent Desnogues for the debugging help. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* This files are compiled in libqemu.a nowJuan Quintela2009-09-231-3/+0
| | | | | | | This fixes compilation of linux-user with today qemu, please apply. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix device tree compile broken by ca20cf32ab3d945155141ef737f5d08ebb373e1dBlue Swirl2009-09-231-0/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix Sparse warning about invalid access past the end of 'mode'Blue Swirl2009-09-211-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>