configure: do not quote $PKG_CONFIG

We should not quote the PKG_CONFIG setting as this deviates from the
canonical upstream behavior that gets integrated with all other build
systems, and deviates from how we treat all other toolchain variables
that we get from the environment.

Ultimately, the point is that it breaks passing custom flags directly
to pkg-config via the env var where this normally works elsewhere,
and it used to work in the past.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
gdbstub: use blocking reads

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
fix gcc warnings when RESERVED_VA is 0

The current code, while correct, triggers a bunch of gcc warnings when
RESERVED_VA is 0 like so:
linux-user/syscall.c: In function 'do_shmat':
linux-user/syscall.c:3058: warning: comparison of unsigned expression < 0 is always false
linux-user/syscall.c: In function 'open_self_maps':
linux-user/syscall.c:4960: warning: comparison of unsigned expression < 0 is always false
linux-user/syscall.c:4960: warning: comparison of unsigned expression < 0 is always false

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
qemu-log: wrap long text

The existing help output is a bit hard to read due to the ad-hoc wrapping.
This makes it a bit more programmatic (at least, it wraps it once, but
that should be good enough for now).  It's not terribly intelligent (just
sticks a dash in the middle of the broken word) rather than splitting on
whitespace, but not sure how much time we really want to invest here.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ignore more generated files

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Blackfin: add disassembler support

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Blackfin: initial port

This is the core Blackfin support.  While most things work that gcc will
generate, there are notable things missing at this point:
 - many dsp/alu/mac insns not supported
 - no saturation support
 - many astat flags not updated
 - probably other stuff
Details as to what is missing "by design" vs "not done due to laziness"
can be sorted out in the Blackfin README/TODO files.

FLAT and FDPIC ELFs however seem to work nicely, as do random samplings of
apps from a typical build.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Blackfin: add linux-user support

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Blackfin: add test suite

To run it, simply add the bfin-elf compiler to your PATH and do:
	make -C tests/tcg/bfin

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
linux-user: add support for Blackfin syscalls

The Blackfin arch supports a simple sram allocator for userspace, as well
as a DMA memcpy function to access the sram.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
[WIP] Blackfin: add softmmu support

Not functional yet -- it does compile though!

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Blackfin: add CPU models
Blackfin: initial set of models

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
more hardware work