Re: [Qemu-devel] [PATCH] tcg: Use the GDB JIT debugging interface.

2011-10-01 Thread Daniel Jacobowitz
On Fri, Sep 30, 2011 at 10:36 AM, Richard Henderson wrote: > On 09/30/2011 12:12 AM, Jan Kiszka wrote: >>> Breakpoint 1, __ldb_mmu (addr=1001716, mmu_idx=0) >>>     at /home/rth/work/qemu/qemu/softmmu_template.h:86 >>> 86   { >>> (gdb) where >>> #0  __ldb_mmu (addr=1001716, mmu_idx=0) >>>     at /

Re: [Qemu-devel] [PATCH] ARM semihosting improvements

2009-12-30 Thread Daniel Jacobowitz
abi cc1, not an arm-none-linux-gnueabi cc1. In my case that was useful because there was no dynamic memory allocation. We also rely on semihosting for GCC testing. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] [PATCH] ARM semihosting improvements

2009-12-30 Thread Daniel Jacobowitz
From: Daniel Jacobowitz This patch improves ARM semihosting to the point where qemu-system-arm can simulate cc1 from GCC. It can't simulate GCC itself, which requires POSIXy bits like execve, but the backend works, including the preprocessor. * Use -kernel and -append for SYS_GET_CM

Re: [Qemu-devel] [PATCH] ARM semihosting improvements

2009-12-30 Thread Daniel Jacobowitz
signed target_argv, defined in main. And > target_argv is freed in main before starting simulation... Well, that's possible - but that code was there already; I only moved the CONFIG_USER_ONLY case down a couple of lines. I don't recall why there's user-mode support in this file. -- Daniel Jacobowitz CodeSourcery

[Qemu-devel] [PATCH] ARM semihosting improvements

2009-12-30 Thread Daniel Jacobowitz
From: Daniel Jacobowitz This patch improves ARM semihosting to the point where qemu-system-arm can simulate cc1 from GCC. It can't simulate GCC itself, which requires POSIXy bits like execve, but the backend works, including the preprocessor. * Use -kernel and -append for SYS_GET_CM

Re: [Qemu-devel] [PATCH] Fix a parallel build failure.

2009-11-04 Thread Daniel Jacobowitz
h. I don't have any preference which is applied, although I'm always in favor of eliminating unnecessary recursive invocations. -- Daniel Jacobowitz CodeSourcery

[Qemu-devel] [PATCH] Fix a parallel build failure.

2009-11-04 Thread Daniel Jacobowitz
From: Daniel Jacobowitz With enough parallelism, make will run all the dependencies of build-all at the same time: build-all: config-host.h config-all-devices.h $(DOCS) $(TOOLS) So some of the $(TOOLS) will build before config-host.h is finished. The object files need to depend on it

Re: [Qemu-devel] [ARM] add with PC in argument

2008-02-25 Thread Daniel Jacobowitz
8. The code you've posted looks wrong. IIRC there were some older ARM processors with a different value. -- Daniel Jacobowitz CodeSourcery

Re: [PATCH][Qemu-devel] Single stepping for PPC broken!

2008-02-13 Thread Daniel Jacobowitz
On Wed, Feb 13, 2008 at 04:52:22PM +0100, Marius Groeger wrote: > On Wed, 13 Feb 2008, Daniel Jacobowitz wrote: > > > On Wed, Feb 13, 2008 at 09:46:44AM +0100, Marius Groeger wrote: > > > if ((tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK) &&

Re: [PATCH][Qemu-devel] Single stepping for PPC broken!

2008-02-13 Thread Daniel Jacobowitz
if (ctx->sf_mode) > gen_op_b_T1_64(); > else > #endif > gen_op_b_T1(); > if (ctx->singlestep_enabled) > gen_op_debug() > } > > It seems to me that the second if (ctx->singlestep_enabled) is > rendundant. No, if you've gone to a differ

Re: [Qemu-devel] [PATCH] arm eabi TLS

2007-12-13 Thread Daniel Jacobowitz
gh I don't know if there is silicon to match yet. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat

2007-11-07 Thread Daniel Jacobowitz
on > the implementation. If folks don't like the target conditionals there, I recommend we just set some low bit to be sure it's a NaN and move on. The softfloat implementation is not all that close to matching any one hardware FPU. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat

2007-11-03 Thread Daniel Jacobowitz
t we need to make sure at least one mantissa bit is set. If we're confident that the common NaN format will already have some bit other than the qnan/snan bit set, this is fine; otherwise, we might want to forcibly set some other mantissa bit. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] qemu-system-ppc problem with PVR access from user space

2007-11-02 Thread Daniel Jacobowitz
able the warning. It wasn't an accidental decision on the kernel maintainers' part either. I don't see the PVR read in current glibc, but I thought it was there; I don't remember exactly what happened. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] qemu alpha?

2007-10-20 Thread Daniel Jacobowitz
e no idea of what's going wrong with this register and what should be > its value. Are you running recent Alpha binaries? I believe the unique register is used for the thread-local storage base address. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] about cache model in ARM emulation

2007-10-18 Thread Daniel Jacobowitz
On Thu, Oct 18, 2007 at 06:57:19AM -0700, Boy Dfx wrote: > From what I can see instructions are loaded from memory without a > clock cycle penalty, but I wanted to be sure. Yes. Qemu is absolutely useless for performance questions about real hardware; it does not model any cycles. --

Re: [Qemu-devel] PPC build errors in CVS

2007-10-07 Thread Daniel Jacobowitz
act as preprocessing directives, the behavior is undefined." GCC did not support it until here: http://gcc.gnu.org/ml/gcc-patches/2002-02/msg01874.html -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] QEMU/MIPS & dyntick kernel

2007-10-04 Thread Daniel Jacobowitz
ivate dynticks, just commenting the entry in > alarm_timers structure. Since then, I can notice that the emulated ... and I think you're talking about a qemu option with the same name. -- Daniel Jacobowitz CodeSourcery

Re: Re: [Qemu-devel] softmmu macro meaning

2007-09-27 Thread Daniel Jacobowitz
d depends completely on the current processor mode. It has nothing to do with the address. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] softmmu macro meaning

2007-09-27 Thread Daniel Jacobowitz
> TASK_SIZE border or something?? It makes more sense if you realize it's kernel/user mode not address space. > 2.) the MMUSUFFIX macro ("mmu" / "cmmu") what does this stand for?? cmmu is used to read code to execute, IIRC (different permissions). -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] Another MIPS quiet NaN fix

2007-09-24 Thread Daniel Jacobowitz
On Mon, Sep 24, 2007 at 04:05:45PM +0200, Andreas Schwab wrote: > Daniel Jacobowitz <[EMAIL PROTECTED]> writes: > > > Glibc's test-float failed on my qemu testing. I tracked it down to > > these routines: if you count the bits carefully, you'll see that > &g

[Qemu-devel] Re: MIPS FP rounding

2007-09-24 Thread Daniel Jacobowitz
On Thu, Sep 20, 2007 at 06:28:25PM +0100, Thiemo Seufer wrote: > It fixed an internal testcase, I'll have to check what was going > on there, probably tomorrow. I don't suppose you've had a chance to look at this? -- Daniel Jacobowitz CodeSourcery

[Qemu-devel] Another MIPS quiet NaN fix

2007-09-24 Thread Daniel Jacobowitz
but now it's a quiet NaN if the input was a quiet NaN so exp10(NaN) no longer raises Invalid. -- Daniel Jacobowitz CodeSourcery --- fpu/softfloat-specialize.h (revision 182529) +++ fpu/softfloat-specialize.h (local) @@ -120,9 +120,7 @@ static commonNaNT float32ToCommonNaN( fl static

[Qemu-devel] MIPS FP rounding

2007-09-19 Thread Daniel Jacobowitz
nearest, return an signed appropriate signed zero. Why? The MIPS ISA docs say a rounded result is returned in this case, and that's what's in FST2 if that code is removed. This shows up in the mul-subnormal-single-1.c test from GCC's ieee.exp. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] gdbstub breakpoints not working across virtual address spaces

2007-09-19 Thread Daniel Jacobowitz
ike breakpoints to arbitrarily apply across all virtual > address spaces. I think they already do. Specific example, please. -- Daniel Jacobowitz CodeSourcery

[Qemu-devel] More MIPS panics

2007-09-13 Thread Daniel Jacobowitz
in copy_to_user_page... -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] Problems with MIPS full system emulation and breakpoints

2007-09-10 Thread Daniel Jacobowitz
On Fri, Apr 20, 2007 at 02:22:09PM -0400, Daniel Jacobowitz wrote: > I have an idea. When I was talking to Paul about breakpoints > recently, I noticed something very strange in the ARM port: it > continues to disassemble the instruction under a breakpoint after > generating the deb

Re: [Qemu-devel] bug: qemu-0.9.0 emulating mipsel (32-bit R3000) on amd64

2007-05-07 Thread Daniel Jacobowitz
ongnu.org/archive/html/qemu-devel/2007-05/msg00037.html Someone might want to try: http://lists.nongnu.org/archive/html/qemu-devel/2007-04/msg00514.html -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] Problems with MIPS full system emulation and breakpoints

2007-04-20 Thread Daniel Jacobowitz
p. What happens if you add an extra +1 to the translation block size if there's a breakpoint, in target-mips/translate.c? -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] Building OpenHackWare (qemu-system-ppc firmware)

2007-04-19 Thread Daniel Jacobowitz
: { *(.rodata) } > bios +.rodata: { *(.rodata*) } > bios -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] qemu/pc-bios README openbios-sparc32 openbios-s...

2007-04-16 Thread Daniel Jacobowitz
On Mon, Apr 16, 2007 at 06:01:04PM +0300, Blue Swirl wrote: > I stand corrected. Is there anything that can be done to reduce this waste? For a BIOS image, you might be OK with ld -N - that should suppress the padding. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] qemu/pc-bios README openbios-sparc32 openbios-s...

2007-04-15 Thread Daniel Jacobowitz
; Nice theory (and I missed the modulo arithmetic, sorry), but on > Ultrasparc the page sizes available are 8k, 64k, 4M and 256M. #define ELF_MAXPAGESIZE 0x10 BFD and GNU ld think it's 1MB. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel]Debian for arm

2007-04-13 Thread Daniel Jacobowitz
oot d > Obviously, it doesn't work (it always asked for a kernel image). > I have already experienced a net-install through qemu for i386 target. Is > this > possible with an ARM target? See Aurelien's walkthrough for this: http://www.aurel32.net/info/debian_arm_qemu.php -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] [PATCH] Increase max -kernel size

2007-03-31 Thread Daniel Jacobowitz
On Wed, Mar 28, 2007 at 03:00:08PM +0100, Paul Brook wrote: > On Wednesday 28 March 2007 03:21, Daniel Jacobowitz wrote: > > On Wed, Mar 28, 2007 at 12:35:18AM +0100, Thiemo Seufer wrote: > > > Right, a piggyback-style loader would likely fail in that case. > > > > Wh

Re: [Qemu-devel] no meta key?

2007-03-30 Thread Daniel Jacobowitz
cetera, but the Forth interpreter is completely missing. Therefore, so is the Forth console. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] [PATCH] Increase max -kernel size

2007-03-27 Thread Daniel Jacobowitz
thing to do. Or always putting the initrd at the top of emulated RAM. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] [PATCH] Increase max -kernel size

2007-03-27 Thread Daniel Jacobowitz
compressed kernel image and initrd, but what matters is the size it gets uncompressed to. I don't remember any more than that so I'm sorry if it's total garbage, which it might be. I did write a patch to stick the initrd right after the loaded kernel; it didn't work a

Re: [Qemu-devel] [PATCH] Increase max -kernel size

2007-03-27 Thread Daniel Jacobowitz
.rdz}). When I talked to Fabrice about this he recommended looking at what other loaders (lilo, grub) do to avoid overwriting the kernel. I've been meaning to do that for months but never got around to it. -- Daniel Jacobowitz CodeSourcery

[Qemu-devel] Qemu/PPC and OpenBSD

2007-03-11 Thread Daniel Jacobowitz
the same. The console doesn't stop updating earlier in the boot, so something is a tiny bit happier, but cuda still gets stuck. -M prep: doesn't check for ADB, so doesn't hang there. Crashes later. Not sure where, GDB couldn't backtrace far enough. -- Daniel Jacobowitz CodeSour

Re: [Qemu-devel] PowerPC OpenBSD

2007-03-09 Thread Daniel Jacobowitz
On Fri, Mar 09, 2007 at 10:02:25AM -0500, Daniel Jacobowitz wrote: > Has anyone tried to run OpenBSD/macppc on qemu? > > As far as I can tell the latest is that OpenHack'Ware says it doesn't > support compressed ELF. I was going to work on that, but I can't get >

[Qemu-devel] PowerPC OpenBSD

2007-03-09 Thread Daniel Jacobowitz
ause I built it with GCC 4.x and I had to make a couple of fixes that suggest it's used to older compilers and binutils... I'll try some older tools next. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org h

Re: [Qemu-devel] [PATCH] Choose emulated MIPS CPU at runtime

2007-03-06 Thread Daniel Jacobowitz
This removes the MIPS_USES_FPU compilation time option, and replaces by a > runtime one. > > Please comment. Do you have any idea what performance effect this does (or doesn't) have? -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list

[Qemu-devel] ARM post-decrement fix

2007-02-14 Thread Daniel Jacobowitz
n & (1 << 23))) val = -val; +val += extra; if (val != 0) gen_op_addl_T1_im(val); } else { -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] Two quick requests.

2007-02-10 Thread Daniel Jacobowitz
re not to complain about rw COW images based on readonly ones... -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

[Qemu-devel] kqemu / x86_64

2007-02-05 Thread Daniel Jacobowitz
S:EIP=f180:f0001f77 SS:SP=:f00c6df0 Is there something I could try that would be more informative? [It got there much quicker than without kqemu though! :-)] -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-

Re: [Qemu-devel] threads using qemu

2007-01-20 Thread Daniel Jacobowitz
On Sat, Jan 20, 2007 at 05:44:30PM -, priya sridhar wrote: > Is there no other way to run threaded applications using an emulator > for ARM? system level emulation is possible? That works just fine. -- Daniel Jacobowitz CodeSourcery __

Re: [Qemu-devel] qemu Makefile configure

2007-01-03 Thread Daniel Jacobowitz
n on the command line (i.e. the override effectively happens after the +=). You'd need to leave CFLAGS for the overrideable bits unless you wanted to override all the += deliberately. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-dev

Re: [Qemu-devel] TCP_NODELAY for -redir

2006-12-18 Thread Daniel Jacobowitz
On Mon, Nov 13, 2006 at 02:30:27PM -0500, Daniel Jacobowitz wrote: > I was trying to run GDB remote debug tests through a -redir socket > today. It crawled unbelievably. Paul guessed that slirp wasn't using > TCP_NODELAY, and Nagle was to blame. > > He was even righter

Re: [Qemu-devel] Tracing guest memory accesses

2006-12-16 Thread Daniel Jacobowitz
hich seems a little counter intuitive. No. Those are I/O device accesses, not memory accesses. Look at the softmmu code instead. It may be easiest to add some new instrumentation in the translation code for whatever target you're interested in. -- Daniel Jacobo

Re: RE : Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Daniel Jacobowitz
ere. > > > > > > mount -o loop does this. > > > > How is everybody missing the point? :-) mount -o loop doesn't mount > > qcow images. > > > Would be that difficult to write a qcow fs module ? Probably not, but I think using nbd for it is much nicer.

Re: [Qemu-devel] Re: NBD server for QEMU images

2006-12-12 Thread Daniel Jacobowitz
ssing the files inside QEMU disk > > images locally, without having to launch a virtual machine and accessing > > then from there. > > mount -o loop does this. How is everybody missing the point? :-) mount -o loop doesn't mount qcow images. -- Daniel Jacobowitz CodeSourcery ___

Re: [Qemu-devel] initrd not working

2006-12-02 Thread Daniel Jacobowitz
umbers" when checking the > initramfs, both with a compressed ext2 filesystem image and with a > compressed cpio archive. What am I doing wrong? I don't know, but I'll be interested to find out. I tried two different kernels on Debian amd64, and one of them could load an initrd but

Re: [Qemu-devel] TCP_NODELAY for -redir

2006-11-16 Thread Daniel Jacobowitz
On Mon, Nov 13, 2006 at 02:30:27PM -0500, Daniel Jacobowitz wrote: > I was trying to run GDB remote debug tests through a -redir socket > today. It crawled unbelievably. Paul guessed that slirp wasn't using > TCP_NODELAY, and Nagle was to blame. > > He was even righter

[Qemu-devel] TCP_NODELAY for -redir

2006-11-13 Thread Daniel Jacobowitz
See trivial attached patch. Is this going to bite other things, i.e. does it need to be configurable? -- Daniel Jacobowitz CodeSourcery --- slirp/tcp.h |2 +- slirp/tcp_subr.c |2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) Index: qemu/slirp/

Re: [Qemu-devel] [PATCH] Huge TLB performance improvement

2006-11-12 Thread Daniel Jacobowitz
On Sun, Nov 12, 2006 at 07:02:55PM +0100, Dirk Behme wrote: > Daniel Jacobowitz wrote: > >This is with all of the patches I've posted to the > >list applied > > If patches settle down would be nice to get a list of > patches or a summary patch to be applied in which

Re: [Qemu-devel] [PATCH] Huge TLB performance improvement

2006-11-12 Thread Daniel Jacobowitz
On Sun, Nov 12, 2006 at 11:56:35AM -0500, Daniel Jacobowitz wrote: > --- > target-mips/cpu.h |3 ++- > target-mips/exec.h |1 + > target-mips/helper.c|2 +- > target-mips/mips-defs.h |1 + > target-mips/

Re: [Qemu-devel] [PATCH] Huge TLB performance improvement

2006-11-12 Thread Daniel Jacobowitz
ime for soft-mmu routines and tb management routines, which is very good. Then there's about 65% executing guest code and the rest in translation, virtual hardware, and other overhead. -- Daniel Jacobowitz CodeSourcery --- target-mips/cpu.h |3 ++- target-mips/exec.h |1 +

Re: [Qemu-devel] [PATCH] Huge TLB performance improvement

2006-11-12 Thread Daniel Jacobowitz
On Sun, Nov 12, 2006 at 10:07:15AM -0500, Daniel Jacobowitz wrote: > > Actually that gives me an idea. When a TLB entry with a different ASID gets > > evicted we currently flush that page. This should be a no-op because we > > already did a full flush when the ASID changed.

Re: [Qemu-devel] [PATCH] Huge TLB performance improvement

2006-11-12 Thread Daniel Jacobowitz
instead of a boost. I don't see anything obvious that I could do about it, though. The qemu tlb table only has room for is_user and the virtual address. > Actually that gives me an idea. When a TLB entry with a different ASID gets > evicted we currently flush that page. This shou

Re: [Qemu-devel] [PATCH] Huge TLB performance improvement

2006-11-11 Thread Daniel Jacobowitz
On Sun, Nov 05, 2006 at 10:38:20AM -0500, Daniel Jacobowitz wrote: > On Mon, Mar 06, 2006 at 02:59:29PM +, Thiemo Seufer wrote: > > Hello All, > > > > this patch vastly improves TLB performance on MIPS, and probably also > > on other architectures. I measured

[Qemu-devel] MIPS halt / reboot

2006-11-11 Thread Daniel Jacobowitz
BIOS support, so I made the reset vector reload any specified kernel and initrd. Works in my Debian rootfs; very handy for automated benchmarking. -- Daniel Jacobowitz CodeSourcery --- hw/mips_r4k.c | 144 +--- target-mips/cpu.h |

Re: [Qemu-devel] Re: Debugging with paging enabled

2006-11-10 Thread Daniel Jacobowitz
doubt it would lead to any problems at all; and it would be a localized change in two places in the GDB stub. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] Re: Debugging with paging enabled

2006-11-10 Thread Daniel Jacobowitz
> usefulness. I'd recommend the even simpler hack of having qemu report a PC that included the segment base :-) -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] Re: Debugging with paging enabled

2006-11-08 Thread Daniel Jacobowitz
On Thu, Nov 09, 2006 at 12:57:29AM +0100, Marcel Kilgus wrote: > Daniel Jacobowitz wrote: > >> Leaving that aside, if I do set the breakpoint correctly at virtual > >> address (e.g.) 0xC0123456 qemu will (correctly I guess) cause an > >> exception for code offset 0x12

Re: [Qemu-devel] Re: Debugging with paging enabled

2006-11-08 Thread Daniel Jacobowitz
s. > So all in all GDB just doesn't seem to cope very well with segmented > memory. Correct. It doesn't know anything at all about i386 segmentation. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org h

Re: [Qemu-devel] Combined MIPS fixes

2006-11-07 Thread Daniel Jacobowitz
xes - A usable kernel .config, the attached may help -- Daniel Jacobowitz CodeSourcery # # Automatically generated make config: don't edit # Linux kernel version: 2.6.19-rc3 # Sat Nov 4 11:53:04 2006 # CONFIG_MIPS=y # # Machine selection # # CONFIG_MIPS_MTX1 is not set # CONF

Re: [Qemu-devel] [PATCH] Huge TLB performance improvement

2006-11-05 Thread Daniel Jacobowitz
range. */ > +memset (env->tb_jmp_cache, 0, TB_JMP_CACHE_SIZE * sizeof (void *)); > > #if !defined(CONFIG_SOFTMMU) > if (addr < MMAP_AREA_END) > > > ___ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

[Qemu-devel] Combined MIPS fixes

2006-11-05 Thread Daniel Jacobowitz
tx, EXCP_CpU, 3); break; +#if defined (CONFIG_USER_ONLY) +case 0x1F: + if (ctx->opcode == 0x7c03e83b) /* rdhwr v1,$29 */ + { + gen_op_tls_value (); + gen_op_store_T0_gpr_gpr3 (); + break; + } + /* Fall through to RI. */ +#endif + #if defined (TARGET_MIPS64)

Re: [Qemu-devel] Compiling qemu as position-independent code on an x86_64 linux host

2006-11-03 Thread Daniel Jacobowitz
ement whetever relocation it's complaining > about. This is dyngen we're talking about - presumably that isn't the bit that needs to be PIC? Looks to me like the op file was compiled with the PIC CFLAGS. -- Daniel Jacobowitz CodeSourcery ___

Re: [Qemu-devel] gdb support for qemu-mips (user mode)

2006-11-03 Thread Daniel Jacobowitz
laining that it couldn't find a fn for a given ip address. I can confirm that this patch is correct - I have a bit for bit identical copy in my working directory (I tend to batch on submitting things...). -- Daniel Jacobowitz CodeSourcery ___ Q

Re: [Qemu-devel] qemu vs gcc4

2006-10-26 Thread Daniel Jacobowitz
> increment This is an unrelated problem, and much easier to fix. Don't increment casts. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] Trouble with GDB & Some 'Can it be done' Debugging questions

2006-07-20 Thread Daniel Jacobowitz
On Thu, Jul 20, 2006 at 11:04:01PM +0200, Fabrice Bellard wrote: > Daniel Jacobowitz wrote: > >On Wed, Jul 19, 2006 at 08:43:57AM +, Steve Ellenoff wrote: > > > >>#3) Anytime I try to dump the instruction at the current IP such as: > >>(gdb) x /10i $eip >

Re: [Qemu-devel] Trouble with GDB & Some 'Can it be done' Debugging questions

2006-07-20 Thread Daniel Jacobowitz
the binary file > itself? Everything I've read so far on GDB (and especially any GDB Gui > front end) seems to suggest it's not possible. That would really suck. Sure you can. It will just work. -- Daniel Jacobowitz CodeSourcery

Re: [Qemu-devel] setting MIPS gdb breakpoints have wrong offsets

2006-06-11 Thread Daniel Jacobowitz
shows address 0x8180 for the first example. > > Maybe "b *0xbfc00380" works for your case. If it does, your mips-gdb > is somehow strange. This means that GDB has (mistakenly) decided that the first assembly instruction in the function is part of a standard f

Re: [Qemu-devel] [PATCH 1/5] single step with no IRQs and timers

2006-05-21 Thread Daniel Jacobowitz
oal is of course not to conflict with later versions of GDB. And thanks for doing this! What a great idea! -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] [PATCH] Fix overflow conditions for MIPS add/subtract

2006-05-01 Thread Daniel Jacobowitz
I even compiled and ran the sample -> no exception. Oh, damn! tmp is not the result, T0 is the result. No wonder this didn't make any sense. I apologize, I'm really batting zero today. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel

Re: [Qemu-devel] [PATCH] Fix overflow conditions for MIPS add / subtract

2006-04-28 Thread Daniel Jacobowitz
On Fri, Apr 28, 2006 at 04:51:39PM +0200, Dirk Behme wrote: > Daniel Jacobowitz wrote: > >I haven't tested the patched qemu, but I did test the expressions > >themselves in standalone code, and they definitely do not detect > >overflow. > > Maybe you can test Ralf&

Re: [Qemu-devel] [PATCH] Fix overflow conditions for MIPS add / subtract

2006-04-28 Thread Daniel Jacobowitz
ect, EXCP_OVERFLOW); > } tmp ^ T1 -> result and T1 of different sign tmp ^ T0 -> result and T0 of different sign Which implies that the operands have the same sign. Again, this case can't overflow. I haven't tested the patched qemu, but I did

Re: [Qemu-devel] will qemu emulate 32 or 64 bit CPU?

2006-04-06 Thread Daniel Jacobowitz
-bit and 64-bit targets uses different qemu binaries. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] Missing ARMv6 instructions?

2006-04-04 Thread Daniel Jacobowitz
de by Toshiba. It seems to me that MIPS is just as realistic and > usable platform as ARM. But I would be very interested to hear from > anyone who knows better. > > Now, I wonder when Qemu will support MIPS emulation? :-) Good question. How about... last year? -- Daniel Jacobowitz CodeS

Re: [Qemu-devel] build problems with linux usb support?

2006-03-27 Thread Daniel Jacobowitz
On Wed, Mar 22, 2006 at 02:45:11PM -0600, Troy Benjegerdes wrote: > On Sat, Mar 11, 2006 at 02:57:03PM -0500, Daniel Jacobowitz wrote: > > On Wed, Mar 08, 2006 at 10:55:21AM -0600, Troy Benjegerdes wrote: > > > The only think I can track down so far is that BITS_PER_LONG is onl

Re: [Qemu-devel] Debugging low level ARM with GDB

2006-03-23 Thread Daniel Jacobowitz
On Thu, Mar 23, 2006 at 05:10:07PM +0100, Dirk Behme wrote: > (gdb) s > Cannot find bounds of current function > (gdb) n > Cannot find bounds of current function Try using "si" and "ni" to step a single instruction. But make sure you can run it before you try to

Re: [Qemu-devel] build problems with linux usb support?

2006-03-11 Thread Daniel Jacobowitz
gt; code? I've just been disabling USB support by a local patch and hoping someone else fixed this :-) -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] [PATCH] Trivial code improvement

2006-02-16 Thread Daniel Jacobowitz
the program flow was changed */ Didn't we go round this recently? do_interrupt might modify env->interrupt_request - see target-arm/helper.c for instance. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] MIPS emulation?

2006-01-18 Thread Daniel Jacobowitz
#x27;d need a few patches that were merged later; I haven't touched that build tree since Nov. 27th. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] Mac as Host

2006-01-16 Thread Daniel Jacobowitz
been merged into the main project? Did you even look at the same page Paul sent you to? :-) It's active, CVS works fine, and he's the author. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] MIPS emulation?

2006-01-14 Thread Daniel Jacobowitz
atches have to be applied? You have to select QEMU as your machine type when you configure the kernel. Use the linux-mips.org CVS, of course. > >(B) I have no idea if that method works with MIPS qemu; I only tested > >-kernel. > > Hmm? > > I didn't quite understand

Re: [Qemu-devel] MIPS emulation?

2006-01-14 Thread Daniel Jacobowitz
he MIPS QEMU. (B) I have no idea if that method works with MIPS qemu; I only tested -kernel. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] Problems bringing up network in qemu-system-arm

2006-01-04 Thread Daniel Jacobowitz
s the magic bullet? Any boot options that I need to give > to the kernel? (BTW, I am calling the emulation as > > qemu-system-arm -kernel integratorcp.zImage -initrd arm_root.imfg > -nographic -net user ) -net nic -net user, or no -net option at all. You need a network card on

Re: [Qemu-devel] qemu-0.8.0 question?

2006-01-02 Thread Daniel Jacobowitz
uch device or address > # > > Any ideas? Try -net nic -net user. Or no -net option at all; this should be the default if no -net options are specified, IIRC. -- Daniel Jacobowitz CodeSourcery ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] Re: ARM page crossing inside insn? (Re: ARM ethernet fixes)

2005-12-19 Thread Daniel Jacobowitz
That's all the atomicity you need; the instruction is being restarted after the base register was clobbered. -- Daniel Jacobowitz CodeSourcery, LLC ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] ARM ethernet fixes

2005-12-18 Thread Daniel Jacobowitz
On Sun, Dec 18, 2005 at 10:42:16AM -0700, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Daniel Jacobowitz <[EMAIL PROTECTED]> writes: > : On Sun, Dec 18, 2005 at 04:51:02PM +, Paul Brook wrote: > : > Something like the attached patch. > :

Re: [Qemu-devel] ARM ethernet fixes

2005-12-18 Thread Daniel Jacobowitz
ood (averaging about 10K/s - 30K/s most of the time, but occasionally spiking higher), but there may be something we can do about that later. Thanks. -- Daniel Jacobowitz CodeSourcery, LLC ___ Qemu-devel mailing list Qemu-devel@nongnu.org h

[Qemu-devel] ARM ethernet fixes

2005-12-14 Thread Daniel Jacobowitz
someone'll get around to emulating the Integrator/AP, which has a PCI bus, and then we can do it normally. -- Daniel Jacobowitz CodeSourcery, LLC Index: qemu/hw/smc91c111.c === --- qemu.orig/hw/smc91c111.c2005-12-13 19:3

Re: [Qemu-devel] [PATCH] fix for pty device output

2005-12-09 Thread Daniel Jacobowitz
sion of > this program (usage: "./termslave /dev/pts/4" for example once qemu is > running). If someone could tell me the name of THE unix-ish program to > do the job, I would be glad to throw mine away. It's probably just a line or two of 'expect

Re: [Qemu-devel] Current MIPS fixes

2005-12-05 Thread Daniel Jacobowitz
On Mon, Dec 05, 2005 at 08:50:46PM +0100, Fabrice Bellard wrote: > Daniel Jacobowitz wrote: > >Fabrice, since the last combined patch I sent you, I've dropped the exec.c > >bits; added EXCP_HALTED; improved the unaligned access traps; and shaved > >two > >bits

[Qemu-devel] Current MIPS fixes

2005-12-04 Thread Daniel Jacobowitz
ing bits merged. -- Daniel Jacobowitz CodeSourcery, LLC Index: cpu-exec.c === RCS file: /cvsroot/qemu/qemu/cpu-exec.c,v retrieving revision 1.69 diff -u -p -r1.69 cpu-exec.c --- cpu-exec.c 4 Dec 2005 18:46:05 - 1.69 +++ cp

Re: [Qemu-devel] Debian blues (Re: Problem compiling with gcc 3.3 on 2.6.14 (Debian))

2005-11-28 Thread Daniel Jacobowitz
x27;re supposed to configure applications to use the correct compiler if they need a particular version. For qemu that's --cc. Not so hard, was it? -- Daniel Jacobowitz CodeSourcery, LLC ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel