Re: [Qemu-devel] How to print value of float instruction argument

2016-11-01 Thread Programmingkid
On Oct 31, 2016, at 4:39 AM, Peter Maydell wrote: > On 31 October 2016 at 03:13, Programmingkid wrote: >> I'm trying to print the value of the arguments sent to >> gen_fmadds() in target-ppc/translate/fp-impl.inc.c. How >> do I do this? I have tried printf("cpu_fpr[rA(ctx->opcode)] = %d\n", >> c

Re: [Qemu-devel] How to print value of float instruction argument

2016-10-31 Thread Peter Maydell
On 31 October 2016 at 03:13, Programmingkid wrote: > I'm trying to print the value of the arguments sent to > gen_fmadds() in target-ppc/translate/fp-impl.inc.c. How > do I do this? I have tried printf("cpu_fpr[rA(ctx->opcode)] = %d\n", > cpu_fpr[rA(ctx->opcode)]), but that always prints the same

[Qemu-devel] How to print value of float instruction argument

2016-10-30 Thread Programmingkid
I'm trying to print the value of the arguments sent to gen_fmadds() in target-ppc/translate/fp-impl.inc.c. How do I do this? I have tried printf("cpu_fpr[rA(ctx->opcode)] = %d\n", cpu_fpr[rA(ctx->opcode)]), but that always prints the same value of 138 even if I change the values sent to fmadds.