Skip to content

Commit 12c1f68

Browse files
committed
Make stuff run
1 parent 93d949e commit 12c1f68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1171
-47047
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ project(qemu_dev)
33

44
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
55

6-
file(GLOB_RECURSE src "*.c")
6+
file(GLOB_RECURSE src "*.c" ".h")
77

88
set(SOURCES
99
${src})
1010

11-
include_directories(include)
1211

13-
add_custom_target(qemu_dev COMMAND make
14-
CLION_EXE_DIR=${PROJECT_BINARY_DIR})
12+
add_executable(qemu_dev ${SOURCES})
13+
target_compile_options(qemu_dev PRIVATE -iquote "${CMAKE_CURRENT_SOURCE_DIR}/include")
14+
#target_include_directories(qemu_dev PRIVATE include)
1515

Makefile

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ qemu-version.h: FORCE
494494

495495
config-host.h: config-host.h-timestamp
496496
config-host.h-timestamp: config-host.mak
497-
<<<<<<< HEAD
498497
qemu-options.def: $(SRC_PATH)/qemu-options.hx $(SRC_PATH)/scripts/hxtool
499498
$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"GEN","$@")
500499

@@ -511,27 +510,6 @@ $(SOFTMMU_ALL_RULES): config-all-devices.mak
511510
ifdef DECOMPRESS_EDK2_BLOBS
512511
$(SOFTMMU_ALL_RULES): $(edk2-decompressed)
513512
endif
514-
=======
515-
qemu-options.def: $(SRC_PATH)/qemu-options.hx
516-
$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $@")
517-
518-
SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
519-
SOFTMMU_SUBDIR_RULES=$(filter %-softmmu,$(SUBDIR_RULES))
520-
521-
$(SOFTMMU_SUBDIR_RULES): $(block-obj-y)
522-
$(SOFTMMU_SUBDIR_RULES): $(crypto-obj-y)
523-
$(SOFTMMU_SUBDIR_RULES): $(qom-obj-y)
524-
$(SOFTMMU_SUBDIR_RULES): config-all-devices.mak
525-
526-
subdir-%:
527-
$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,)
528-
529-
subdir-pixman: pixman/Makefile
530-
$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pixman V="$(V)" all,)
531-
532-
pixman/Makefile: $(SRC_PATH)/pixman/configure
533-
(cd pixman; CFLAGS="$(CFLAGS) -fPIC $(extra_cflags) $(extra_ldflags)" $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-gtk --disable-shared --enable-static)
534-
>>>>>>> 919b29ba7d... Pebble Qemu
535513

536514
SOFTMMU_FUZZ_RULES=$(filter %-softmmu/fuzz, $(TARGET_DIRS_RULES))
537515
$(SOFTMMU_FUZZ_RULES): $(authz-obj-y)

Makefile.objs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
#######################################################################
22
# Common libraries for tools and emulators
33
stub-obj-y = stubs/
4-
<<<<<<< HEAD
54
util-obj-y = crypto/ util/ qobject/ qapi/
65
qom-obj-y = qom/
7-
=======
8-
util-obj-y = util/ qobject/ qapi/
9-
util-obj-y += crypto/
10-
util-obj-y += qmp-introspect.o qapi-types.o qapi-visit.o qapi-event.o
11-
>>>>>>> 919b29ba7d... Pebble Qemu
126

137
#######################################################################
148
# code used by both qemu system emulation and qemu-img

README.rst

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,6 @@
1-
<<<<<<< HEAD:README.rst
21
===========
32
QEMU README
43
===========
5-
=======
6-
QEMU with STM32 Microcontroller Implementation
7-
8-
Official Homepage: http://beckus.github.io/qemu_stm32/
9-
10-
OVERVIEW
11-
This is a copy of QEMU that has been modified to include an implementation
12-
of the STM32 microcontroller. It also implements an Olimex STM32_P103
13-
developmentvboard. This project runs the demos located in the
14-
stm32_p103_demos project located at: https://github.com/beckus/stm32_p103_demos .
15-
16-
Commands for a typical build:
17-
./configure --enable-debug --target-list="arm-softmmu"
18-
make
19-
20-
Useful make commands when rebuilding:
21-
make defconfig
22-
make clean
23-
24-
The generated executable is arm-softmmu/qemu-system-arm .
25-
26-
Other configure options which control the STM32 implementation:
27-
28-
--extra-cflags=-DDEBUG_CLKTREE
29-
Print out clock tree debug statements.
30-
31-
--extra-cflags=-DDEBUG_STM32_RCC
32-
Print RCC debug statements.
33-
34-
--extra-cflags=-DDEBUG_STM32_UART
35-
Print UART debug statements.
36-
37-
--extra-cflags=-DSTM32_UART_NO_BAUD_DELAY
38-
Disable the BAUD rate timing simulation
39-
(i.e. the UART will transmit or receive as fast as possible, rather than
40-
using a realistic delay).
41-
42-
--extra-cflags=-DSTM32_UART_ENABLE_OVERRUN
43-
Enable setting of the overrun flag if a character is
44-
received before the last one is processed. If this is not set, the UART
45-
will not receive the next character until the previous one is read by
46-
software. Although less realisitic, this is safer in case the VM is
47-
running slow.
48-
49-
Other QEMU configure options which are useful for troubleshooting:
50-
--extra-cflags=-DDEBUG_GIC
51-
52-
qemu-system-arm options which are useful for trobuleshooting:
53-
-d ?
54-
To see available log levels
55-
56-
-d cpu,in_asm
57-
Enable logging to view the CPU state during execution and the ARM
58-
instructions which are being executed. I believe --enable-debug must be
59-
used for this to work.
60-
By default, you can find the output in /tmp/qemu.log:
61-
62-
UNIT TESTING
63-
Unit test scripts are included for the STM32 implementation.
64-
These test will be executed when running "make" with the standard
65-
check targets (see tests/Makefile for documentation of QEMU's unit
66-
testing features):
67-
make check
68-
make check-qtest-arm
69-
70-
71-
72-
The original QEMU README follows:
73-
74-
>>>>>>> 919b29ba7d... Pebble Qemu:README
754

765
QEMU is a generic and open source machine & userspace emulator and
776
virtualizer.

VERSION

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
<<<<<<< HEAD
21
5.0.0
3-
=======
4-
2.5.0-pebble4
5-
>>>>>>> 919b29ba7d... Pebble Qemu

block/qcow2-cache.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,8 @@ int qcow2_cache_empty(BlockDriverState *bs, Qcow2Cache *c)
308308
c->entries[i].offset = 0;
309309
c->entries[i].lru_counter = 0;
310310
}
311-
<<<<<<< HEAD
312311

313312
qcow2_cache_table_release(c, 0, c->size);
314-
=======
315-
qcow2_cache_table_release(bs, c, 0, c->size);
316-
>>>>>>> 919b29ba7d... Pebble Qemu
317313

318314
c->lru_counter = 0;
319315

block/qcow2.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,11 +1253,7 @@ static int coroutine_fn qcow2_do_open(BlockDriverState *bs, QDict *options,
12531253
Error *local_err = NULL;
12541254
uint64_t ext_end;
12551255
uint64_t l1_vm_state_index;
1256-
<<<<<<< HEAD
12571256
bool update_header = false;
1258-
=======
1259-
uint64_t l2_cache_size, refcount_cache_size;
1260-
>>>>>>> 919b29ba7d... Pebble Qemu
12611257

12621258
ret = bdrv_pread(bs->file, 0, &header, sizeof(header));
12631259
if (ret < 0) {
@@ -1520,11 +1516,6 @@ static int coroutine_fn qcow2_do_open(BlockDriverState *bs, QDict *options,
15201516
if (ret < 0) {
15211517
goto fail;
15221518
}
1523-
if (s->l2_table_cache == NULL || s->refcount_block_cache == NULL) {
1524-
error_setg(errp, "Could not allocate metadata caches");
1525-
ret = -ENOMEM;
1526-
goto fail;
1527-
}
15281519

15291520
s->flags = flags;
15301521

block/quorum.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,6 @@ static int quorum_open(BlockDriverState *bs, QDict *options, int flags,
929929
}
930930

931931
s->threshold = qemu_opt_get_number(opts, QUORUM_OPT_VOTE_THRESHOLD, 0);
932-
<<<<<<< HEAD
933932
/* and validate it against s->num_children */
934933
ret = quorum_valid_threshold(s->threshold, s->num_children, &local_err);
935934
if (ret < 0) {
@@ -943,9 +942,6 @@ static int quorum_open(BlockDriverState *bs, QDict *options, int flags,
943942
ret = qapi_enum_parse(&QuorumReadPattern_lookup, pattern_str,
944943
-EINVAL, NULL);
945944
}
946-
=======
947-
ret = parse_read_pattern(qemu_opt_get(opts, QUORUM_OPT_READ_PATTERN));
948-
>>>>>>> 919b29ba7d... Pebble Qemu
949945
if (ret < 0) {
950946
error_setg(&local_err, "Please set read-pattern as fifo or quorum");
951947
goto exit;

0 commit comments

Comments
 (0)