Skip to content

Commit

Permalink
v0.11.0-rc2
Browse files Browse the repository at this point in the history
August 28, 2009
  • Loading branch information
gdwnldsKSC committed Mar 5, 2024
1 parent e901168 commit 1bcd1fe
Show file tree
Hide file tree
Showing 67 changed files with 415 additions and 421 deletions.
Binary file modified TESTFILES/WinQemu.dll
Binary file not shown.
Binary file modified TESTFILES/WinQemu.pdb
Binary file not shown.
Binary file modified TESTFILES/WinQemuTest.exe
Binary file not shown.
Binary file modified TESTFILES/WinQemuTest.pdb
Binary file not shown.
34 changes: 34 additions & 0 deletions qemu/Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
version 0.11.0-rc2
- mips: fix conditional move off fp conditions codes (Nath Froyd)
- fix migration to obey -S (Paolo Bonzini)
- remove pc-0-10 machine type (Mark McLoughlin)
- vnc: fix copyrect screen corruption (Gerd Hoffman)
- fix vm state change handlers running order (Markus Armbruster)
- e1000: fix eerc and ics emulation (Bill Paul)
- fix sdl zooming with pl110 (Blue Swirl)
- sparc64: flush pending conditional evaluations (Igor Kovalenko)
- esp: fix interrupt register read (Blue Swirl)
- option rom makefile fixes (Paul Brook)
- fix sparse warnings (Blue Swirl)
- fix symfind (Laurent Desnogues)
- win32: fix default prefix (Stefan Weil)
- fix checksum writing in signboot (Alex Graf)
- fix sdl window resize (Stefano Stabellini)
- do not resize the screen on hw_invalidate (Stefano Stabellini)
- Add checks for -smbios option (Beth Kon)
- fix do_set_link (Luiz Capitulino)
- fix do_commit behavior (Luiz Capitulino)
- make windows notice media change (Gleb Natapov)
- check for PR_SET_NAME being defined (Nathan Froyd)
- fix migration for ide devices (Anthony Liguori)
- Use correct depth in vmware vga (Reimar Doffiner)
- support 32bpp cursors in sdl (Reimar Doffinger)
- fix device name completion for eject (Blue Swirl)
- make screendump use DisplayState properly (Stefano Stabellini)
- fix autostart with live migration (Avi Kivity)
- fix detached migration with exec (Chris Lalancette)
- fix segv when changing vnc password in sdl (Zach Amsden)
- fix vnc password clearing with stdio monitor (Zach Amsden)
- clean up VGA type selection (Zach Amsden)
- add missing linefeed in error message (Stefan Weil)

version 0.11.0-rc1
- add machine aliasing support (Mark McLoughlin)
- add getfd/closefd monitor commands (Mark McLoughlin)
Expand Down
18 changes: 10 additions & 8 deletions qemu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ifdef CONFIG_WIN32
LIBS+=-lwinmm -lws2_32 -liphlpapi
endif

build-all: $(TOOLS) $(DOCS) roms recurse-all
build-all: $(TOOLS) $(DOCS) recurse-all

config-host.mak: configure
ifneq ($(wildcard config-host.mak),)
Expand All @@ -57,7 +57,14 @@ subdir-%:
$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a
$(filter %-user,$(SUBDIR_RULES)): libqemu_user.a

recurse-all: $(SUBDIR_RULES)

ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
romsubdir-%:
$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",)

ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS))

recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)

#######################################################################
# block-obj-y is code used by both qemu system emulation and qemu-img
Expand Down Expand Up @@ -235,7 +242,7 @@ clean:
rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d
rm -f qemu-img-cmds.h
$(MAKE) -C tests clean
for d in $(TARGET_DIRS) $(ROMS) libhw32 libhw64; do \
for d in $(ALL_SUBDIRS) libhw32 libhw64; do \
$(MAKE) -C $$d $@ || exit 1 ; \
done

Expand All @@ -260,11 +267,6 @@ else
BLOBS=
endif

roms:
for d in $(ROMS); do \
$(MAKE) -C $$d || exit 1 ; \
done

install-doc: $(DOCS)
$(INSTALL_DIR) "$(DESTDIR)$(docdir)"
$(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
Expand Down
2 changes: 1 addition & 1 deletion qemu/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.91
0.10.92
2 changes: 1 addition & 1 deletion qemu/audio/ossaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ static int oss_init_out (HWVoiceOut *hw, struct audsettings *as)
oss->mmapped = 0;
if (conf.try_mmap) {
oss->pcm_buf = mmap (
0,
NULL,
hw->samples << hw->info.shift,
PROT_READ | PROT_WRITE,
MAP_SHARED,
Expand Down
2 changes: 1 addition & 1 deletion qemu/audio/sdlaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int sdl_open (SDL_AudioSpec *req, SDL_AudioSpec *obt)
}

#ifndef _WIN32
pthread_sigmask (SIG_SETMASK, &old, 0);
pthread_sigmask (SIG_SETMASK, &old, NULL);
#endif
return status;
}
Expand Down
6 changes: 3 additions & 3 deletions qemu/block/curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static CURLState *curl_init_state(BDRVCURLState *s)
return NULL;
curl_easy_setopt(state->curl, CURLOPT_URL, s->url);
curl_easy_setopt(state->curl, CURLOPT_TIMEOUT, 5);
curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, curl_read_cb);
curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, (void *)curl_read_cb);
curl_easy_setopt(state->curl, CURLOPT_WRITEDATA, (void *)state);
curl_easy_setopt(state->curl, CURLOPT_PRIVATE, (void *)state);
curl_easy_setopt(state->curl, CURLOPT_AUTOREFERER, 1);
Expand Down Expand Up @@ -358,11 +358,11 @@ static int curl_open(BlockDriverState *bs, const char *filename, int flags)
// Get file size

curl_easy_setopt(state->curl, CURLOPT_NOBODY, 1);
curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, curl_size_cb);
curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, (void *)curl_size_cb);
if (curl_easy_perform(state->curl))
goto out;
curl_easy_getinfo(state->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d);
curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, curl_read_cb);
curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, (void *)curl_read_cb);
curl_easy_setopt(state->curl, CURLOPT_NOBODY, 0);
if (d)
s->len = (size_t)d;
Expand Down
2 changes: 1 addition & 1 deletion qemu/bsd-user/bsdload.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,

bprm.p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int);
for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */
bprm.page[i] = 0;
bprm.page[i] = NULL;
retval = open(filename, O_RDONLY);
if (retval < 0)
return retval;
Expand Down
4 changes: 1 addition & 3 deletions qemu/bsd-user/elfload.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,6 @@ static inline void memcpy_fromfs(void * to, const void * from, unsigned long n)
memcpy(to, from, n);
}

extern unsigned long x86_stack_size;

static int load_aout_interp(void * exptr, int interp_fd);

#ifdef BSWAP_NEEDED
Expand Down Expand Up @@ -1014,7 +1012,7 @@ static const char *lookup_symbolxx(struct syminfo *s, target_ulong orig_addr)
key.st_value = orig_addr;

sym = bsearch(&key, syms, s->disas_num_syms, sizeof(*syms), symfind);
if (sym != 0) {
if (sym != NULL) {
return s->disas_strtab + sym->st_name;
}

Expand Down
3 changes: 3 additions & 0 deletions qemu/bsd-user/qemu.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ void mmap_fork_start(void);
void mmap_fork_end(int child);
#endif

/* main.c */
extern unsigned long x86_stack_size;

/* user access */

#define VERIFY_READ 0
Expand Down
2 changes: 1 addition & 1 deletion qemu/config-host.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define CONFIG_STATIC 1
#define CONFIG_SLIRP 1
#define CONFIG_ADLIB 1
#define QEMU_VERSION "0.10.91"
#define QEMU_VERSION "0.10.92"
#define QEMU_PKGVERSION "MS-VisualStudio-2022"
#define CONFIG_UNAME_RELEASE ""
#define AUDIO_DRIVERS \
Expand Down
7 changes: 4 additions & 3 deletions qemu/configure
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ fi

if test "$mingw32" = "yes" ; then
if test -z "$prefix" ; then
prefix="c:\\\\Program Files\\\\Qemu"
prefix="c:/Program Files/Qemu"
fi
mansuffix=""
datasuffix=""
Expand Down Expand Up @@ -1807,8 +1807,9 @@ fi
echo "TOOLS=$tools" >> $config_host_mak

roms=
if test "$cpu" = "i386" -o "$cpu" = "x86_64" ; then
roms="pc-bios/optionrom"
if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) -a \
"$targetos" != "Darwin" ; then
roms="optionrom"
fi
echo "ROMS=$roms" >> $config_host_mak

Expand Down
16 changes: 7 additions & 9 deletions qemu/curses.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#include "qemu-common.h"
#include "console.h"
#include "sysemu.h"

#include <curses.h>

#ifndef _WIN32
Expand All @@ -38,6 +33,10 @@
#define resize_term resizeterm
#endif

#include "qemu-common.h"
#include "console.h"
#include "sysemu.h"

#define FONT_HEIGHT 16
#define FONT_WIDTH 8

Expand Down Expand Up @@ -158,9 +157,8 @@ static void curses_cursor_position(DisplayState *ds, int x, int y)
/* generic keyboard conversion */

#include "curses_keys.h"
#include "keymaps.c"

static kbd_layout_t *kbd_layout = 0;
static kbd_layout_t *kbd_layout = NULL;
static int keycode2keysym[CURSES_KEYS];

static void curses_refresh(DisplayState *ds)
Expand Down Expand Up @@ -311,7 +309,7 @@ static void curses_keyboard_setup(void)
keyboard_layout = "en-us";
#endif
if(keyboard_layout) {
kbd_layout = init_keyboard_layout(keyboard_layout);
kbd_layout = init_keyboard_layout(name2keysym, keyboard_layout);
if (!kbd_layout)
exit(1);
}
Expand Down Expand Up @@ -366,7 +364,7 @@ void curses_display_init(DisplayState *ds, int full_screen)
dcl->dpy_refresh = curses_refresh;
dcl->dpy_text_cursor = curses_cursor_position;
register_displaychangelistener(ds, dcl);
qemu_free_displaysurface(ds->surface);
qemu_free_displaysurface(ds);
ds->surface = qemu_create_displaysurface_from(640, 400, 0, 0, (uint8_t*) screen);

invalidate = 1;
Expand Down
13 changes: 6 additions & 7 deletions qemu/curses_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#include "keymaps.h"


#define KEY_RELEASE 0x80
#define KEY_MASK 0x7f
#define SHIFT_CODE 0x2a
Expand Down Expand Up @@ -202,7 +206,7 @@ static const int curses2keycode[CURSES_KEYS] = {
[0x006] = 33 | CNTRL, /* Control + f */
[0x007] = 34 | CNTRL, /* Control + g */
[0x008] = 35 | CNTRL, /* Control + h */
[0x00a] = 36 | CNTRL, /* Control + j */
/* Control + j collides with Return */
[0x00b] = 37 | CNTRL, /* Control + k */
[0x00c] = 38 | CNTRL, /* Control + l */

Expand Down Expand Up @@ -239,11 +243,6 @@ static const int curses2keysym[CURSES_KEYS] = {

};

typedef struct {
const char* name;
int keysym;
} name2keysym_t;

static const name2keysym_t name2keysym[] = {
/* Plain ASCII */
{ "space", 0x020 },
Expand Down Expand Up @@ -480,5 +479,5 @@ static const name2keysym_t name2keysym[] = {
{ "F20", 0x11c },
{ "Escape", 27 },

{ 0, 0 },
{ NULL, 0 },
};
4 changes: 1 addition & 3 deletions qemu/darwin-user/commpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
* MA 02110-1301, USA.
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <fcntl.h>
#include <stdio.h>
Expand Down
3 changes: 1 addition & 2 deletions qemu/darwin-user/machload.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <sys/types.h>
Expand Down
4 changes: 1 addition & 3 deletions qemu/darwin-user/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
* MA 02110-1301, USA.
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <stdio.h>
Expand Down
4 changes: 1 addition & 3 deletions qemu/darwin-user/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
* MA 02110-1301, USA.
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <stdio.h>
Expand Down
4 changes: 1 addition & 3 deletions qemu/darwin-user/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
* MA 02110-1301, USA.
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <stdio.h>
Expand Down
4 changes: 1 addition & 3 deletions qemu/darwin-user/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
* MA 02110-1301, USA.
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <fcntl.h>
#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions qemu/elf_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static int glue(symfind, SZ)(const void *s0, const void *s1)
int result = 0;
if (key->st_value < sym->st_value) {
result = -1;
} else if (key->st_value > sym->st_value + sym->st_size) {
} else if (key->st_value >= sym->st_value + sym->st_size) {
result = 1;
}
return result;
Expand All @@ -82,7 +82,7 @@ static const char *glue(lookup_symbol, SZ)(struct syminfo *s, target_ulong orig_
key.st_value = orig_addr;

sym = bsearch(&key, syms, s->disas_num_syms, sizeof(*syms), glue(symfind, SZ));
if (sym != 0) {
if (sym != NULL) {
return s->disas_strtab + sym->st_name;
}

Expand Down
Loading

0 comments on commit 1bcd1fe

Please sign in to comment.