| Branch: | Revision:

root / hw / etraxfs.c @ e7b43f7e

History | View | Annotate | Download (5.4 kB)

# Date Author Comment
2446333c 08/24/2010 06:22 pm Blue Swirl

Rearrange block headers

Changing block.h or blockdev.h resulted in recompiling most objects.

Move DriveInfo typedef and BlockInterfaceType enum definitions
to qemu-common.h and rearrange blockdev.h use to decrease churn.

Signed-off-by: Blue Swirl <>

1724f049 07/06/2010 06:36 pm Alex Williamson

qemu_ram_alloc: Add DeviceState and name parameters

These will be used to generate unique id strings for ramblocks. The name
field is required, the device pointer is optional as most callers don't
have a device. When there's no device or the device isn't a child of...

77d4f95e 06/10/2010 03:45 pm Edgar E. Iglesias

cris: Break out image loading to hw/cris-boot.c.

Signed-off-by: Edgar E. Iglesias <>

5f9fc5ad 03/29/2010 10:23 pm Blue Swirl

Compile pflash_cfi02 only once

Push TARGET_WORDS_BIGENDIAN dependency to board level.

Signed-off-by: Blue Swirl <>

409dbce5 03/16/2010 09:38 am Aurelien Jarno

load_elf: replace the address addend by a translation function

A few machines need to translate the ELF header addresses into physical
addresses. Currently the only possibility is to add a value to the

This patch replaces the addend argument by and a translation function...

3c178e72 10/12/2009 05:42 pm Gerd Hoffmann

rom loader: fix sparc -kernel boot.

(1) register pstrcpy_targphys() in rom list, it is used for kernel
command lines by a number of architectures.
(2) add rom_ptr() function to get a pointer for applying changes
to loaded images. Needed for example to tell the linux kernel...

e23a1b33 10/07/2009 04:54 pm Markus Armbruster

New qdev_init_nofail()

Like qdev_init(), but terminate program via hw_error() instead of
returning an error value.

Use it instead of qdev_init() where terminating the program on failure
is okay, either because it's during machine construction, or because...

c227f099 10/02/2009 12:12 am Anthony Liguori

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. Something
like this must be presented on the list first so people can provide input...

99a0949b 10/01/2009 09:45 pm malc

Get rid of _t suffix

Some not so obvious bits, slirp and Xen were left alone for the time

Signed-off-by: malc <>

ca20cf32 09/20/2009 05:58 pm Blue Swirl

Compile loader only once

Callers must pass ELF machine, byte swapping and symbol LSB clearing
information to ELF loader. A.out loader needs page size information, pass
that too as a parameter.

Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw....

751c6a17 07/27/2009 10:08 pm Gerd Hoffmann

kill drives_table

First step cleaning up the drives handling. This one does nothing but
removing drives_table[], still it became seriously big.

drive_get_index() is gone and is replaced by drives_get() which hands
out DriveInfo pointers instead of a table index. This needs adaption in...

ee6847d1 07/17/2009 01:28 am Gerd Hoffmann

qdev: rework device properties.

This patch is a major overhaul of the device properties. The properties
are saved directly in the device state struct now, the linked list of
property values is gone.

Advantages: * We don't have to maintain the list with the property values....

a08d4367 06/29/2009 10:18 pm Jan Kiszka

Revert "Introduce reset notifier order"

This reverts commit 8217606e6edb49591b4a6fd5a0d1229cebe470a9 (and
updates later added users of qemu_register_reset), we solved the
problem it originally addressed less invasively.

Signed-off-by: Jan Kiszka <>...

ba494313 06/15/2009 10:00 pm Edgar E. Iglesias

etrax: Don't pass CPUState to peripherals.

Signed-off-by: Edgar E. Iglesias <>

562183de 06/11/2009 04:11 pm Edgar E. Iglesias

ETRAX: Correct PIC creation for the bare FS board.

Signed-off-by: Edgar E. Iglesias <>

067a3ddc 05/26/2009 04:56 pm Paul Brook

Remove qdev irq sink handling

We have both IRQ sinks and GPIO inputs. These are in principle exactly
the same thing, so remove the former.

Signed-off-by: Paul Brook <>

8217606e 05/22/2009 06:50 pm Jan Kiszka

Introduce reset notifier order

Add the parameter 'order' to qemu_register_reset and sort callbacks on
registration. On system reset, callbacks with lower order will be
invoked before those with higher order. Update all existing users to the
standard order 0....

0c257437 05/22/2009 04:54 am Anthony Liguori

Introduce is_default field for QEMUMachine

f80f9ec changed the order that machines are registered which had the effect of
changing the default machine. This changeset introduces a new is_default field
so that machine types can declare that they are the default for an architecture....

f80f9ec9 05/21/2009 04:47 pm Anthony Liguori

Convert machine registration to use module init functions

This cleans up quite a lot of #ifdefs, extern variables, and other ugliness.

Signed-off-by: Anthony Liguori <>

fd6dc90b 05/18/2009 11:24 pm Edgar E. Iglesias

cris: First shot at qdev for CRIS interrupts.

Signed-off-by: Edgar E. Iglesias <>

678fdca8 05/18/2009 10:34 pm Edgar E. Iglesias

etrax: Remove unused eth irq line.

The ethernet blocks irq line to report errors is unimplemented in QEMU.
Remove it for now.

Signed-off-by: Edgar E. Iglesias <>

3b1fd90e 05/16/2009 03:14 am Edgar E. Iglesias

ETRAX-TIMER: qdevify.

Signed-off-by: Edgar E. Iglesias <>

4b816985 05/16/2009 03:13 am Edgar E. Iglesias

ETRAX-SER: qdevify.

Signed-off-by: Edgar E. Iglesias <>

73cfd29f 05/16/2009 03:13 am Edgar E. Iglesias

ETRAX: Simplify PIC interface.

Instead of exporting a custom structure to represent different
interrupt types, just export the irq array and have the top
elements point to the NMI lines.

Signed-off-by: Edgar E. Iglesias <>

d33fd9d1 05/15/2009 05:53 pm Edgar E. Iglesias

ETRAX: Correct passing of kernel command line.

Signed-off-by: Edgar E. Iglesias <>

fbe1b595 05/13/2009 07:56 pm Paul Brook

Remove vga_ram_size

The vga_ram_size argument to machine init functions always has the same
value, and is ignored by many machines (including SPARC32 which has an
obsolete ifdef for VGA_RAM_SIZE).

Remove it and push VGA_RAM_SIZE into vga_int.h.

Signed-off-by: Paul Brook <>

190cd021 04/11/2009 08:33 pm pbrook

Remove redundant ram_require machine properly.

Signed-off-by: Paul Brook <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

dcac9679 04/09/2009 11:05 pm pbrook

Use load_image_targphys and avoid phys_ram_base.

Signed-off-by: Paul Brook <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

3023f332 01/16/2009 09:04 pm aliguori

graphical_console_init change (Stefano Stabellini)

Patch 5/7

This patch changes the graphical_console_init function to return an
allocated DisplayState instead of a QEMUConsole.

This patch contains just the graphical_console_init change and few other
modifications mainly in console.c and vl.c....

0ae18cee 01/13/2009 09:39 pm aliguori

Check NIC model in some NIC init functions (Mark McLoughlin)

Some NIC init functions are only called when that model is
the only valid model. In that case, it makes sense to use
qemu_check_nic_model() from the NIC init function itself.

Signed-off-by: Mark McLoughlin <>...

94410b78 01/09/2009 02:04 am edgar_igl

ETRAX: Let the ethernet PHY report the current link-state.

  • PHY reports correct link-state.
  • Allow the board description to assign separate addresses to each PHY.

Signed-off-by: Edgar E. Iglesias <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

c1e1a491 01/08/2009 12:46 am edgar_igl

ETRAX: Always provide a valid net model.

Signed-off-by: Edgar E. Iglesias <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

de553065 01/07/2009 02:13 pm edgar_igl

ETRAX: No need to mask off the I flag twice at reset.

Signed-off-by: Edgar E. Iglesias <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

9eee9a5d 11/13/2008 11:10 pm edgar_igl

ETRAX-FS: Fix a segfault if pflash drive not found.

drive_get_index() returns -1 if a drive isn't found; don't
use -1 to index drives_table.

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Edgar E. Iglesias <>


3d878caa 10/28/2008 12:59 pm balrog

Set default max_cpus to one.

Clean-up machine definitions.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

f5a5cca3 10/22/2008 10:58 pm edgar_igl

ETRAX-FS: Add support for passing kernel command lines

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

8ab94444 10/22/2008 10:35 pm edgar_igl

ETRAX-FS: Correct booting of elf linux images from ram.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

b2097003 10/07/2008 11:39 pm aliguori

machine struct - specify max_cpus at the per machine level (Jes Sorensen)

Introduce a max_cpus per-machine variable, allowing individual boards
to limit it's number of CPUs. Check requested number of CPUs in setup
code and exit if it exceeds the supported number for the machine....

4b32e168 10/07/2008 11:34 pm aliguori

machine struct - use C99 initializers (Jes Sorensen)

Modify all the machine struct declarations to use C99 initializers.
This patch has no functional changes.

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>...

980f8a0b 09/05/2008 08:17 pm edgar_igl

CRIS: Mask off the cache selection bit after MMU translations.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

b3c7724c 06/30/2008 07:31 pm pbrook

Move CPU save/load registration to common code.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

877d8ad7 06/10/2008 02:44 am edgar_igl

CRIS: Add (untested) cpu-state save/load.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

5ef98b47 06/10/2008 02:33 am edgar_igl ETRAX: Add NMI support to the watchdog and the interrupt controller.
  • Add NMI and GURU exceptions to teh interrupt controller.
  • Teach the watchdog timer to signal an NMI before reseting the chip.
  • Add etraxfs.h to hold api for etrax device models.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

fa1bdde4 06/06/2008 01:58 pm edgar_igl ETRAX machine updates.
  • Move DMA_run into the dma controller to allow for multiple ETRAX/CRIS machines.
  • Support both ELF and kimage kernel images.
  • Correct emulation of the DMA RW_DATA register.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

5439779e 05/28/2008 12:04 am edgar_igl

ETRAX: Allow boot from flash. Support the watchdog timer and resets through it.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

3ce7a69f 05/24/2008 07:03 pm edgar_igl

ETRAX: Correct check for second nic.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

4eeed608 05/18/2008 11:51 am edgar_igl

ETRAX: Connect both ethernet controllers.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

48318011 05/11/2008 06:07 pm edgar_igl Update the etrax machine.
  • Use CFI-0002 flashes.
  • Connect one of the ethernet blocks.
  • Simplified irq numbering.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

b01cde7b 05/03/2008 01:38 am edgar_igl

ETRAX-FS board: Add more flash and internal memory. Select interrupt nr for the

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

00f82b8a 04/28/2008 12:12 am aurel32

Use correct types to enable > 2G support, based on a patch from
Anthony Liguori.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

7fb4fdcf 04/24/2008 08:59 pm balrog

RAM usage information in machine definition.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

03875444 04/22/2008 11:45 pm aurel32

Revert "Use correct types to enable > 2G support" (r4238), it is
not yet ready.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

967032c3 04/22/2008 11:37 pm aurel32

Use correct types to enable > 2G support, based on a patch from
Anthony Liguori.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

ca87d03b 03/14/2008 03:50 am edgar_igl

Made the etrax timers and serial-ports base address relocatable. Use target_phys_addr_t instead of target_ulong.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

e62b5b13 03/14/2008 03:04 am edgar_igl
  • Add a model of the ETRAX interrupt controller.
  • Clean up the interrupt handling a bit.
  • Connect some NOR flash to the test board.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

b881c2c6 11/18/2007 10:46 am blueswir1

Remove unused parameters from QEMUMachineInitFunc (Laurent Vivier)

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

87ecb68b 11/17/2007 07:14 pm pbrook

Break up vl.h.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

aaed909a 11/10/2007 05:15 pm bellard

added cpu_model parameter to cpu_init()

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

6ac0e82d 10/31/2007 03:54 am balrog

Set boot sequence from command line (Dan Kenigsberg).

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

83fa1010 10/08/2007 04:26 pm ths

EtraxFS board support, by Edgar E. Iglesias.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162