Revert "Get rid of _t suffix"
In the very least, a change like this requires discussion on the list.
The naming convention is goofy and it causes a massive merge problem. Somethinglike this must be presented on the list first so people can provide input...
Get rid of _t suffix
Some not so obvious bits, slirp and Xen were left alone for the timebeing.
Signed-off-by: malc <av1474@comtv.ru>
Include microblaze binaries in tarbin.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-mips: make sure constants are in the second argument
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
x86: use globals for CPU registers
Use globals for the 8 or 16 CPU registers on i386 and x86_64.
mips: Fix spelling in comment
inofficial -> unofficial
Thanks to Blue Swirl.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
linux-user: fix coding style nit
Put space between = and & when taking a pointer,to avoid confusion with old-style "&=".
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
net: fix coding style nit
Put space between = and - assigning a negative numberto avoid confusion with old-style "-=" (which we also have, and need to be fixed).
slirp: fix unmatched bracket in if 0
Fix unmatched bracket in commented out code
escc: fix another coding style nit
Fix another place with =- to be "= ".to avoid confusion with old-style "=" (which we also have, and needs to be fixed).
vvfat: fix coding style nit
elfload: fix coding style nit
Put space between = and * when dereferencing a pointer,to avoid confusion with old-style "*="
gdbstub: fix coding style nit
escc: fix coding style nit
Put space between = and - assigning a negative numberto avoid confusion with old-style "-=" (which we also have, and needs to be fixed).
omap_dma: fix unbalanced { in commented out code
Fix unbalanced {} in commented out code.
twl92230: fix old style increment/decrement usage
Modern compilers do not parse "=-" as decrement:you must use "-=" for that. Same for "=+"/"+=".
linux-user: fix old style decrement usage
Modern compilers do not parse "=-" as decrement:you must use "-=" for that.
target-mips: unmatched brackets in if 0
Fix unmatched braket in commented out code
sdlaudio: make it suck less
Revert part of 6692b043198d58a12317009edb98654c6839f043
Committed by accident.
Fix build with profiler enabled
Broken by 4a1418e07bdcfaa3177739e04707ecaec75d89e1
TCG: fix DEF2 macro
target-ppc: log instructions start in TCG code
target-mips: log instructions start in TCG code
Win32: avoid a warning
GetLastError() returns a DWORD.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
BSD user: suppress a warning
BSD user: implement GUEST_BASE
Based on 379f6698d73f476de38682b3ff96ecb226728c43.
tcg/i386: generates dec/inc instead of sub/add when possible
We must take care that dec/inc do not compute CF, which is needed byadd2/sub2.
tcg/i386: optimize and $0xff(ff), reg
Compile some user files only once for all targets
tcg/x86_64: generated dec/inc instead of sub/add when possible
Don't compile roms if not building system targets
Fix user emulator breakage
Fix breakage in the following conditions:- use in-tree building- build user targets after system targets
vl: Add failure check for SetEvent
tcg/ppc: always use tcg_out_call
vl: Do not use perror after failed Win32 API calls
posix-aio-compat: avoid signal race when spawning a thread
target-i386: kill a tmp register
target-i386: use subfi instead of sub with a non-freed constant
eepro100: Fix format strings in debug messages
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 snprintf
eepro100: Remove unused code
eepro100: Enhanced logging and comments
fix -daemonize with kvm
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 integration
qemu: improve sdl title information
Include the `-name XXX` commandline param in the gnome-panel window listvia icon_title.
https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/423076...
qemu-option: rename bool -> boolean
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}s
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_test
Use a long long integer constant to fix a compilation error (integerconstant is too large for 'long' type).
Use a better value for testing, as 1 makes the test pass even ifqi>value is of type uint32_t, float or double. This was suggested by...
monitor: Fix do_wav_capture() argument type
Currently do_wav_capture() path's argument type is 's' (string),but it should be 'F' (filename), this way 'wavcapture' getscommand completion.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
monitor: Fix do_commit() argument type
Currently do_commit() argument type is 's' (string), but itshould be 'B' (block), this way 'commit' gets command completion.
Don't redefine NULL, please
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 issue
Replace:
if (-1 foo())
with:
if (foo() -1)
While this coding style is not in direct contravention of our currentlyratified CODING_STYLE treaty, it could be argued that the Article 3 ofthe European Convention on Human Rights (prohibiting torture and "inhuman...
Remove PARAMS macro
Only two disassemblers (alpha and sh4) were still using it. Just remove itsuse 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 type
gcc wants 1st static and then const
Bring two last users of K&R definitions to ANSI c89
static and inline should came before the type of the functions
Use proper typedef syntax
Why this ever compiled is a mistery to me.
Revert "This files are compiled in libqemu.a now"
This reverts commit fe6549dfd76c278dbcd788b3c15c5e6e5ed32190.
tcg-runtime and host-utils are needed on 32 bit host and they are not partof libqemu.a.
Thanks to Stefan Weil for reporting.
fix use after free
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.
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>...
clean: remove ide/*.o files on clean
ARM host: fix generated blocks linking
This patch fixes the linking of generated blocks on an ARM host.No need to say this brings a very nice speedup :-)
Fix spelling in comment
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 comments
Replace surpress, supress by suppress.
sparc64-8bit-asi
Sparc64 alternate space load/store helpers expect 8 bit ASI value,while wrasi implementation sign-extends ASI operand causingfor example 0x80 to appear as 0xFFFFFF80. Resulting value fallsout of switch in helpers and causes obscure load/store faults....
exec-all.h: increase MAX_OP_PER_INSTR to 96 from 64
The x86_64 ror instruction on a 32-bit host can generate up to 77 TCGops. Some more space should be left for opc that are added at the endof the translation.
Thanks to Laurent Desnogues for the debugging help....
exec-all.h: increase OPC_BUF_SIZE
Increase OPC_BUF_SIZE to compensate the MAX_OP_PER_INSTR's increase.
target-mips: remove MAX_OP_PER_INSTR workaround
Now that MAX_OP_PER_INSTR has been increased to a safer value, removedthe target-mips specific workaround.
This files are compiled in libqemu.a now
This fixes compilation of linux-user with today qemu, please apply.
Fix device tree compile broken by ca20cf32ab3d945155141ef737f5d08ebb373e1d
Fix Sparse warning about invalid access past the end of 'mode'
Fix Sparse warning about obsolete struct initializer
Export tables properly to avoid a Sparse warning
Add 'static' to please Sparse
Fix Sparse warnings about using plain integer as NULL pointer
Fix user targets broken by 96e132e24ee5a693069e83b6a981693588b088c1
Compile host-utils only once
See also facd2857783d58387885ad7cb1e4a8386f241738 and34005a0060c176b3025a9e7c5d064615a9f80325.
Compile TCG runtime library only once
registrs -> registers
Compile ne2000 only once
ioports: remove unused env parameter and compile only once
The CPU state parameter is not used, remove it and adjust callers. Now wecan compile ioport.c once for all targets.
Compile msix only once
Get page size in device init.
Compile loader only once
Callers must pass ELF machine, byte swapping and symbol LSB clearinginformation to ELF loader. A.out loader needs page size information, passthat too as a parameter.
Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw....
Compile qemu-config only once
Compile wdt_i6300esb only once
Fix mingw32 compile
Probe for fdatasync()
PPC: make system bus parent of PCI bus
Fix indentation
ESP: convert to VMState
target-alpha: fix extlh instruction
The extlh instruction on Alpha currently doesn't work properly.It's a combination of a cut/paste bug (16 where it should be 32) as wellas a "shift by 64" bug.
Signed-off-by: Vince Weaver <vince@csl.cornell.edu>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-ppc: optimize slw/srw/sld/srd
Remove a temp local variable and a jump by computing a mask with shifts.
audio: use muldiv64 where it makes sense
audio: introduce audio_pcm_hw_clip_out helper function
alsa: use audio_pcm_hw_clip_out
oss: use audio_pcm_hw_clip_out
sdlaudio: use correct function names in sdl_XXX calls
audio: internal API change
pcm_ops.run_out now takes number of live samples (which will be alwaysgreater than zero) as a second argument, every driver was callingaudio_pcm_hw_get_live_out anyway with exception of fmod which usedaudio_pcm_hw_get_live_out2 for no good reason....
audio: use correct email address