mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
* Log filtering from Alex and Peter
* Chardev fix from Marc-André * config.status tweak from David * Header file tweaks from Markus, myself and Veronia (Outreachy candidate) * get_ticks_per_sec() removal from Rutuja (Outreachy candidate) * Coverity fix from myself * PKE implementation from myself, based on rth's XSAVE support -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJW9ErPAAoJEL/70l94x66DJfEH/A/QkMpAhrgNdyVsahzsGrzE wx5gHFIc1nBYxyr62w4apUb5jPB7zaXu0LA7EAWDeAe0pyP8hZzLT9kJyOEDsuJu zwKN2QeLSNMtPbnbKN0I/YQ2za2xX1V5ruhSeOJoVslUI214hgnAURaGshhQNzuZ 2CluDT9KgL5cQifAnKs5kJrwhIYShYNQB+1eDC/7wk28dd/EH+sPALIoF+rqrSmt Zu4Mdqd+9Ns+oKOjA6br9ULq/Hzg0aDfY82J+XLVVqfF3PXQe8rTDmuMf/7jTn+M Un7ZOcei9oZF2/9vfAfKQpDCcgD9HvOUSbgqV/ubmkPPmN/LNJzeKj0fBhrRN+Y= =K12D -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging * Log filtering from Alex and Peter * Chardev fix from Marc-André * config.status tweak from David * Header file tweaks from Markus, myself and Veronia (Outreachy candidate) * get_ticks_per_sec() removal from Rutuja (Outreachy candidate) * Coverity fix from myself * PKE implementation from myself, based on rth's XSAVE support # gpg: Signature made Thu 24 Mar 2016 20:15:11 GMT using RSA key ID 78C7AE83 # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" # gpg: aka "Paolo Bonzini <pbonzini@redhat.com>" * remotes/bonzini/tags/for-upstream: (28 commits) target-i386: implement PKE for TCG config.status: Pass extra parameters char: translate from QIOChannel error to errno exec: fix error handling in file_ram_alloc cputlb: modernise the debug support qemu-log: support simple pid substitution for logs target-arm: dfilter support for in_asm qemu-log: dfilter-ise exec, out_asm, op and opt_op qemu-log: new option -dfilter to limit output qemu-log: Improve the "exec" TB execution logging qemu-log: Avoid function call for disabled qemu_log_mask logging qemu-log: correct help text for -d cpu tcg: pass down TranslationBlock to tcg_code_gen util: move declarations out of qemu-common.h Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND hw: explicitly include qemu-common.h and cpu.h include/crypto: Include qapi-types.h or qemu/bswap.h instead of qemu-common.h isa: Move DMA_transfer_handler from qemu-common.h to hw/isa/isa.h Move ParallelIOArg from qemu-common.h to sysemu/char.h Move QEMU_ALIGN_*() from qemu-common.h to qemu/osdep.h ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Conflicts: scripts/clean-includes
This commit is contained in:
commit
84a5a80148
620 changed files with 1774 additions and 755 deletions
|
@ -171,7 +171,8 @@ static uint64_t arm_sysctl_read(void *opaque, hwaddr offset,
|
|||
case 0x58: /* BOOTCS */
|
||||
return 0;
|
||||
case 0x5c: /* 24MHz */
|
||||
return muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), 24000000, get_ticks_per_sec());
|
||||
return muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), 24000000,
|
||||
NANOSECONDS_PER_SECOND);
|
||||
case 0x60: /* MISC */
|
||||
return 0;
|
||||
case 0x84: /* PROCID0 */
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "hw/misc/bcm2835_mbox.h"
|
||||
|
||||
#define MAIL0_PEEK 0x90
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "hw/misc/bcm2835_property.h"
|
||||
#include "hw/misc/bcm2835_mbox_defs.h"
|
||||
#include "sysemu/dma.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu-common.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/devices.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qemu/cutils.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/i386/pc.h"
|
||||
#include "hw/pci/pci.h"
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "hw/input/adb.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "qemu/cutils.h"
|
||||
|
||||
/* XXX: implement all timer modes */
|
||||
|
||||
|
@ -145,7 +146,7 @@ static void cuda_update_irq(CUDAState *s)
|
|||
|
||||
static uint64_t get_tb(uint64_t time, uint64_t freq)
|
||||
{
|
||||
return muldiv64(time, freq, get_ticks_per_sec());
|
||||
return muldiv64(time, freq, NANOSECONDS_PER_SECOND);
|
||||
}
|
||||
|
||||
static unsigned int get_counter(CUDATimer *ti)
|
||||
|
@ -189,7 +190,7 @@ static int64_t get_next_irq_time(CUDATimer *s, int64_t current_time)
|
|||
|
||||
/* current counter value */
|
||||
d = muldiv64(current_time - s->load_time,
|
||||
CUDA_TIMER_FREQ, get_ticks_per_sec());
|
||||
CUDA_TIMER_FREQ, NANOSECONDS_PER_SECOND);
|
||||
/* the timer goes down from latch to -1 (period of latch + 2) */
|
||||
if (d <= (s->counter_value + 1)) {
|
||||
counter = (s->counter_value - d) & 0xffff;
|
||||
|
@ -208,7 +209,7 @@ static int64_t get_next_irq_time(CUDATimer *s, int64_t current_time)
|
|||
}
|
||||
CUDA_DPRINTF("latch=%d counter=%" PRId64 " delta_next=%" PRId64 "\n",
|
||||
s->latch, d, next_time - d);
|
||||
next_time = muldiv64(next_time, get_ticks_per_sec(), CUDA_TIMER_FREQ) +
|
||||
next_time = muldiv64(next_time, NANOSECONDS_PER_SECOND, CUDA_TIMER_FREQ) +
|
||||
s->load_time;
|
||||
if (next_time <= current_time)
|
||||
next_time = current_time + 1;
|
||||
|
@ -531,7 +532,7 @@ static void cuda_adb_poll(void *opaque)
|
|||
}
|
||||
timer_mod(s->adb_poll_timer,
|
||||
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
|
||||
(get_ticks_per_sec() / (1000 / s->autopoll_rate_ms)));
|
||||
(NANOSECONDS_PER_SECOND / (1000 / s->autopoll_rate_ms)));
|
||||
}
|
||||
|
||||
/* description of commands */
|
||||
|
@ -559,7 +560,7 @@ static bool cuda_cmd_autopoll(CUDAState *s,
|
|||
if (autopoll) {
|
||||
timer_mod(s->adb_poll_timer,
|
||||
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
|
||||
(get_ticks_per_sec() / (1000 / s->autopoll_rate_ms)));
|
||||
(NANOSECONDS_PER_SECOND / (1000 / s->autopoll_rate_ms)));
|
||||
} else {
|
||||
timer_del(s->adb_poll_timer);
|
||||
}
|
||||
|
@ -585,7 +586,7 @@ static bool cuda_cmd_set_autorate(CUDAState *s,
|
|||
if (s->autopoll) {
|
||||
timer_mod(s->adb_poll_timer,
|
||||
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
|
||||
(get_ticks_per_sec() / (1000 / s->autopoll_rate_ms)));
|
||||
(NANOSECONDS_PER_SECOND / (1000 / s->autopoll_rate_ms)));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -665,7 +666,7 @@ static bool cuda_cmd_get_time(CUDAState *s,
|
|||
}
|
||||
|
||||
ti = s->tick_offset + (qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)
|
||||
/ get_ticks_per_sec());
|
||||
/ NANOSECONDS_PER_SECOND);
|
||||
out_data[0] = ti >> 24;
|
||||
out_data[1] = ti >> 16;
|
||||
out_data[2] = ti >> 8;
|
||||
|
@ -687,7 +688,7 @@ static bool cuda_cmd_set_time(CUDAState *s,
|
|||
ti = (((uint32_t)in_data[1]) << 24) + (((uint32_t)in_data[2]) << 16)
|
||||
+ (((uint32_t)in_data[3]) << 8) + in_data[4];
|
||||
s->tick_offset = ti - (qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)
|
||||
/ get_ticks_per_sec());
|
||||
/ NANOSECONDS_PER_SECOND);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/ppc/mac.h"
|
||||
#include "hw/pci/pci.h"
|
||||
|
@ -253,7 +254,7 @@ static uint64_t timer_read(void *opaque, hwaddr addr, unsigned size)
|
|||
uint64_t systime = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
|
||||
uint64_t kltime;
|
||||
|
||||
kltime = muldiv64(systime, 4194300, get_ticks_per_sec() * 4);
|
||||
kltime = muldiv64(systime, 4194300, NANOSECONDS_PER_SECOND * 4);
|
||||
kltime = muldiv64(kltime, 18432000, 1048575);
|
||||
|
||||
switch (addr) {
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "hw/hw.h"
|
||||
#include "hw/i2c/i2c.h"
|
||||
#include "tmp105.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/visitor.h"
|
||||
|
||||
static void tmp105_interrupt_update(TMP105State *s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue