summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tcg: initial mips supportAurelien Jarno2009-12-013-1/+1452
| | | | | | | | | | | | | | | | Based on a patch from Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> A few words about design choices: * Two registers, at and t0, are reserved for TCG internal use. They are useful for bswap and 64-bit ops. * Most ops supports a constant argument with value 0, which is actually mapped to the zero register. * While the at register is available for constant loading, ops only support a limited range of constants. TCG does a better job doing the register allocation and constant loading by itself. There are plenty of registers available anyway. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* target-mips: use physical address in lladdrAurelien Jarno2009-11-303-28/+61
| | | | | | | | Currently the ll/sc instructions use the virtual address in both user and system mode. Use the physical address insteead in system mode. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* target-mips: add a function to do virtual -> physical translationsAurelien Jarno2009-11-302-0/+25
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* target-mips: split code raising MMU exception in a separate functionAurelien Jarno2009-11-301-46/+53
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* target-mips: factorize load/store code in op_helper.cAurelien Jarno2009-11-301-152/+100
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix commit a167ba50851cdac2fa36633587e98c5956cd6b18Aurelien Jarno2009-11-302-0/+2
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Add support for GNU/kFreeBSDAurelien Jarno2009-11-2911-42/+39
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Revert "vga: do not resize the screen on hw_invalidate"Aurelien Jarno2009-11-272-4/+3
| | | | | | | | This causes ctrl+alt+u or ctrl+alt+f to not work when windows hasn't been resized first. Other graphic emulators do resize the screen on hw_invalidate. This reverts commit 0bd8246bfec1dfb2eb959f52db535572c0260f4c.
* Makefile: Fix spellingStefan Weil2009-11-241-1/+1
| | | | | | | Replace defconfing -> defconfig Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* tcg: fix tcg_regset_{set,reset}_reg with more than 32 registersAurelien Jarno2009-11-241-2/+2
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* cpu-all.h: fix cpu_get_real_ticks on mips hostArnaud Patard2009-11-241-9/+18
| | | | | | | | | | | | | Fix cpu_get_real_ticks: - check should be done on __mips and not __mips_isa_rev - linux kernels >= 2.6.25 are emulating the 2 needed rdhwr functions so it's safe to use rdhwr. This is better than what's currently in but it doesn't mean it works nicely Some tests needs to be done imho Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* linux-user: remove hardcoded value of _NSIG in signal.cArnaud Patard2009-11-241-6/+6
| | | | | | | | | In a bunch of places, 64 is used as value of _NSIG but it's wrong at least on MIPS were _NSIG is 128. Based on a patch from Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* tcg/ppc64,x86_64: fix constraints of op_qemu_st64Aurelien Jarno2009-11-242-2/+2
| | | | | | This op only takes two arguments, not two. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Add missing break.Paul Brook2009-11-241-0/+1
| | | | Signed-off-by: Paul Brook <paul@codesourcery.com>
* Update SeaBIOSAnthony Liguori2009-11-232-0/+0
| | | | | | | | | | This includes the following changes: 42bc394 Make sure to reenable ata interrupts even on error. 494dfc6 Move SeaBIOS post/boot stack to avoid conflict with gPXE. 3133e38 Test for broken gcc -combine on FC12. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ARM atomic ops rewritePaul Brook2009-11-225-176/+251
| | | | | | Implement ARMv6 atomic ops (ldrex/strex) using the same trick as PPC. Signed-off-by: Paul Brook <paul@codesourcery.com>
* ARM RealView I2CPaul Brook2009-11-221-1/+85
| | | | | | Add ARM Realview I2C host emulation. Signed-off-by: Paul Brook <paul@codesourcery.com>
* GPIO I2C reworkPaul Brook2009-11-223-100/+161
| | | | | | | | | | Reqrite bitbanging I2C implementation. New code improves stop/start condition handling, and gives more accurate input line level. Introduce intermediate abstraction layer for I2C bitbanging that is not connected via a GPIO port. Signed-off-by: Paul Brook <paul@codesourcery.com>
* DS1338 RTCPaul Brook2009-11-223-0/+134
| | | | | | Implement MAXIM SD1338 RTC+NVRAM. Signed-off-by: Paul Brook <paul@codesourcery.com>
* BCD cleanupPaul Brook2009-11-225-98/+79
| | | | | | Combine multiple BCD implementations. Signed-off-by: Paul Brook <paul@codesourcery.com>
* Makefile dependencies for device configsPaul Brook2009-11-224-21/+16
| | | | | | | | | | | | Add makefile dependencies for target specific device configs. These will copy the default config if none exists, obsoleting the old configure time code. If a config already exists but is older than the default then print a warning. Also remove config-devices.h. Code does not and should not care which devices are being built. Signed-off-by: Paul Brook <paul@codesourcery.com>
* target-mips: fix physical address type in MMU functionsAurelien Jarno2009-11-222-11/+11
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* [WIN32] Enable -k option on Windows tooHervé Poussineau2009-11-221-2/+0
| | | | | | | There is no reason to have it disabled on this platform. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* target-mips: make CP0_LLAddr register CPU dependentAurelien Jarno2009-11-225-4/+49
| | | | | | | | Depending on the CPU, CP0_LLAddr is either read-only or read-write, and the returned value can be shifted by a variable amount of bits. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
* target-mips: rename CP0_LLAddr into lladdrAurelien Jarno2009-11-225-18/+18
| | | | | | | | The variable CP0_LLAddr represent the full lladdr, not the actual register value, which is only part of this value and depends on the CPU. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Allow build of linuxboot.S with old assemblersJuergen Lock2009-11-211-1/+4
| | | | | | | | | In the spirit of ff56954baf9cfab5cbbe18d10b4a09e4a17f39a8, fix the build of linuxboot.S with old as(1) (as found in some BSD base systems) by emitting the bytes of the insn it doesn't like instead. Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Avoid segfault on net_tap_init() failureJuergen Lock2009-11-211-0/+3
| | | | | | | Check for fd == -1 there. Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* tap-bsd: handle ifname on FreeBSD hostsJuergen Lock2009-11-211-0/+28
| | | | | | | | | Handle ifname on FreeBSD hosts; if no ifname is given, always start the search from tap0. (Simplified/cleaned up version of what has been in the FreeBSD ports for a long time.) Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix tap breakage on BSD hosts (no IFF_VNET_HDR)Juergen Lock2009-11-211-0/+11
| | | | | | | | net/tap-bsd.c was assuming IFF_VNET_HDR was always available, which I think isn't true on any BSD. Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix OpenBSD build of qemu-ioBlue Swirl2009-11-212-89/+87
| | | | | | | | | GCC 3.3.5 generates warnings for static forward declarations of data, so rearrange code to use static forward declarations of functions instead. Use <getopt.h> for optind instead of local definition. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* configure: Fix spelling in comment and rework the commentStefan Weil2009-11-211-8/+10
| | | | | | | | | | | | * Replace vill -> will. * Comment was formatted to make it more readable and to conform to the coding standard, too. * Description of foo="" was completed. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* qemu-io: build on all platformsAurelien Jarno2009-11-211-4/+2
| | | | | | | | | Since c32d766af127f68bb75ba5689f2f5239227bf559, qemu-io should be portable. It is currently built only on linux and mingw32. This patch enables qemu-io on all platforms. Tested on FreeBSD. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* slirp: fix use-after-freeMark McLoughlin2009-11-211-1/+1
| | | | | | | | 460fec67ee introduced a use-after free in slirp. Cc: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* ARM PBX-A9 board supportPaul Brook2009-11-199-110/+209
| | | | | | Implement ARM RealView PBX-A9 board support. Signed-off-by: Paul Brook <paul@codesourcery.com>
* ARM Cortex-A9 cpu supportPaul Brook2009-11-192-1/+36
| | | | | | Basic Cortex-A9 support. Signed-off-by: Paul Brook <paul@codesourcery.com>
* ARM FP16 supportPaul Brook2009-11-196-0/+249
| | | | | | Implement the ARM VFP half precision floating point extensions. Signed-off-by: Paul Brook <paul@codesourcery.com>
* Built network devices oncePaul Brook2009-11-193-2/+6
| | | | | | Move some generic NICS into libhw, and build them for ARM targets. Signed-off-by: Paul Brook <paul@codesourcery.com>
* sb16: remove highspeed reset codemalc2009-11-181-8/+1
| | | | | | | | It was never enabled in any of the public builds anyway. Noticed by Steve Grubb. Signed-off-by: malc <av1474@comtv.ru>
* audio: Remove conditional around sw which can not be NULLmalc2009-11-181-17/+15
| | | | | | Noticed by Steve Grubb. Signed-off-by: malc <av1474@comtv.ru>
* audio: link with -lpulse in addition to -lpulse-simpleAurelien Jarno2009-11-181-2/+2
| | | | | | | Link with -lpulse in addition to -lpulse-simple, needed when --no-add-needed is passed to the linker (gold default). Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix typoBlue Swirl2009-11-171-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix mingw32 buildBlue Swirl2009-11-171-1/+0
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Prevent configuring for a user emulator on a different type of OSBlue Swirl2009-11-171-0/+12
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add linuxboot to BLOBSAlexander Graf2009-11-171-1/+1
| | | | | | | | We should install linuxboot.bin too, so let's add it to the to-be-installed blobs. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Convert linux bootrom to external rom and fw_cfgAlexander Graf2009-11-175-104/+172
| | | | | | | | | | | | | | We already have a working multiboot implementation that uses fw_cfg to get its kernel module etc. data in int19 runtime now. So what's missing is a working linux boot option rom. While at it I figured it would be a good idea to take the opcode generator out of pc.c and instead use a proper option rom, like we do with multiboot. So here it is - an fw_cfg using option rom for -kernel with linux! Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Move common option rom code to header fileAlexander Graf2009-11-172-76/+110
| | | | | | | | | | We will have a linux boot option rom soon, so let's take all functionality that might be useful for both to a header file that both roms can include. That way we only have to write fw_cfg access code once. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Convert multiboot to fw_cfg backed data storageAlexander Graf2009-11-173-31/+94
| | | | | | | | | | | | | | Right now we load the guest kernel to RAM, fire off the BIOS, hope it doesn't clobber memory and run an option rom that jumps into the kernel. That breaks with SeaBIOS, as that clears memory. So let's read all kernel, module etc. data using the fw_cfg interface when in the int19 handler. This patch implements said mechanism for multiboot. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Introduce rom_copyAlexander Graf2009-11-172-0/+39
| | | | | | | | | | We have several rom helpers currently, but none of them can get us code that spans several roms into a pointer. This patch introduces a function that copies over rom contents. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* fw_cfg: change cur_offset to 32 bitsJuan Quintela2009-11-172-6/+40
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Update SeaBIOS to latestAnthony Liguori2009-11-172-0/+0
| | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud