aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-04-25softfloat-native: fix float*_scalbn() functionsAurelien Jarno1-3/+3
float*_scalbn() should be able to take a status parameter. Fix that. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25softfloat: fix float*_scalnb() corner casesAurelien Jarno1-5/+42
float*_scalnb() were not taking into account all cases. This patch fixes some corner cases: - NaN values in input were not properly propagated and the invalid flag not correctly raised. Use propagateFloat*NaN() for that. - NaN or infinite values in input of floatx80_scalnb() were not correctly detected due to a typo. - The sum of exponent and n could overflow, leading to strange results. Additionally having int16 defined to int make that happening for a very small range of values. Fix that by saturating n to the maximum exponent range, and using an explicit wider type if needed. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25softfloat: add floatx80_compare*() functionsAurelien Jarno2-0/+48
Add floatx80_compare() and floatx80_compare_quiet() functions to match the softfloat-native ones. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25softfloat-native: add a few constant valuesAurelien Jarno1-0/+27
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25softfloat: add pi constantsAurelien Jarno1-0/+3
Add a pi constant for float32, float64, floatx80. It will be used by target-i386 and later by the trigonometric functions. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25softfloat: add floatx80 constantsAurelien Jarno1-0/+7
Add floatx80 constants similarly to float32 or float64. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25softfloat: fix floatx80_is_infinity()Aurelien Jarno1-1/+1
With floatx80, the explicit bit is set for infinity. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-25softfloat: fix floatx80 handling of NaNAurelien Jarno1-7/+16
The floatx80 format uses an explicit bit that should be taken into account when converting to and from commonNaN format. When converting to commonNaN, the explicit bit should be removed if it is a 1, and a default NaN should be used if it is 0. When converting from commonNan, the explicit bit should be added. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-22vmstate: port mac_dbdmaJuan Quintela1-24/+22
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22mac_dbdma: create DBDMAState instead of passing one array aroundJuan Quintela1-18/+27
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port piix4Juan Quintela1-14/+11
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22piix4: create PIIX4StateJuan Quintela1-12/+17
It only contains a PCIDevice by know, but it makes easy to use migration code Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port mac_nvramJuan Quintela1-19/+11
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22mac_nvram: size is a size, no need to be a target dependent typeJuan Quintela1-1/+1
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port nandJuan Quintela1-34/+39
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22nand: pin values are uint8_tJuan Quintela2-5/+5
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port max111xJuan Quintela1-32/+17
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22max111x: input field is only used as uint8_tJuan Quintela1-1/+1
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_lcdJuan Quintela1-67/+43
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22pxa2xx_lcd: up field is used as a bool and migrated as an uint8_tJuan Quintela1-1/+1
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22pxa2xx_lcd: name anonymous structJuan Quintela1-13/+15
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: stellaris use unused for placeholder entriesJuan Quintela1-2/+1
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris gamepadJuan Quintela1-26/+24
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port syborg_keyboardJuan Quintela1-40/+17
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port syborg_serialJuan Quintela1-42/+18
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris_adcJuan Quintela1-55/+34
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port syborg_pointerJuan Quintela1-45/+28
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port ppc4xx_pciJuan Quintela1-41/+39
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port ppce500_pciJuan Quintela1-47/+40
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_pmJuan Quintela1-21/+12
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_mmJuan Quintela1-21/+12
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_cmJuan Quintela1-25/+14
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_i2sJuan Quintela1-35/+18
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris gptmJuan Quintela1-60/+24
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port cudaJuan Quintela1-70/+46
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port heathrow_picJuan Quintela1-37/+25
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pl022 sspJuan Quintela1-48/+36
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris sysJuan Quintela1-46/+25
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris ssi busJuan Quintela1-20/+11
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port stellaris i2cJuan Quintela1-32/+17
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port armv7m nvicJuan Quintela1-25/+14
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pl011Juan Quintela1-51/+25
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pxa2xx_keypadJuan Quintela1-36/+17
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port syborg_rtcJuan Quintela1-22/+12
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port pmtimerJuan Quintela3-51/+27
It was a half conversion. Finish it. enabled can only get values of 0, 1 or 2, was declared as an int but sent as an unint8_t, change its type. Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port sysborg_timerJuan Quintela1-30/+16
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port arm_timerJuan Quintela1-23/+14
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port arm sp804Juan Quintela1-18/+11
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port mipsnetJuan Quintela1-34/+19
Signed-off-by: Juan Quintela <quintela@redhat.com>
2011-04-22vmstate: port m48t59Juan Quintela1-23/+13
Signed-off-by: Juan Quintela <quintela@redhat.com>