Qemu implements HPET so that it is connected to IRQ 2, which makes necessary to use it in legacy emulation mode. Add legacy emulation mode to HPET driver. Change the way the HPET driver is initialized. QEMU requires that the mode (one shot or periodic) gets set prior loading comparator value. Add debugging mode to HPET driver to ease the next port. Change-Id: I668325d5968451585519a08b6c41863cf6e37f88 Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com>
34 lines
1.2 KiB
Makefile
34 lines
1.2 KiB
Makefile
PERF_OPT_FLAG-y = -DPERF_OPT
|
|
ALIGN_STACK_FLAG- = -mpreferred-stack-boundary=2
|
|
SECTION_GC_FLAG = $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
|
LTO_FLAG-y = $(call cc-option,-flto,)
|
|
PERF_OPT=$(if $(filter -Os,$(DEFAULTFLAGS)),,y)
|
|
PERF_OPT_FLAG = $(PERF_OPT_FLAG-$(PERF_OPT))
|
|
ALIGN_STACK_FLAG = $(ALIGN_STACK_FLAG-$(PERF_OPT))
|
|
LTO_FLAG = $(LTO_FLAG-$(CONFIG_LTO))
|
|
ifneq ($(CONFIG_PLATFORM_QUARK),y)
|
|
iSSE_FP_MATH_ ?= -mno-sse
|
|
iSSE_FP_MATH ?= ${iSSE_FP_MATH_${CONFIG_SSE_FP_MATH}}
|
|
endif
|
|
x86_FLAGS += $(ALIGN_STACK_FLAG)
|
|
x86_FLAGS += $(SECTION_GC_FLAG)
|
|
x86_FLAGS += $(LTO_FLAG)
|
|
x86_FLAGS += $(LTO_FLAG)
|
|
x86_FLAGS += $(PERF_OPT_FLAG)
|
|
x86_FLAGS += $(iSSE_FP_MATH)
|
|
|
|
ISA_FLAG_quark-$(CONFIG_CPU_MINUTEIA) = -march=pentium
|
|
ISA_FLAG_atom-$(CONFIG_CPU_ATOM) = -march=atom -mtune=atom
|
|
ISA_FLAG_x86 = $(strip $(ISA_FLAG_quark-y) $(ISA_FLAG_atom-y))
|
|
|
|
QEMU_BIOS ?= /usr/share/qemu
|
|
QEMU_CPU_TYPE_x86 = qemu32
|
|
QEMU_FLAGS_x86 = -m 32 -cpu $(QEMU_CPU_TYPE_x86) \
|
|
-no-reboot -nographic -display none -net none \
|
|
-clock dynticks -no-acpi -balloon none \
|
|
-L $(QEMU_BIOS) -bios bios.bin \
|
|
-machine type=pc-0.14
|
|
QEMU_x86 = qemu-system-i386
|
|
|
|
export ISA_FLAG_x86 QEMU_FLAGS_x86 QEMU_x86 QEMU_CPU_TYPE_x86
|