Skip to contentSkip to conversation

PowerPC question

Qemu-devel G 3 3 participants 9 messages Dec 27, 2016 1 message not in the archive

lore
Share & tools
lore

G 3

author
#1 lore raw
In reply to a message not in the archive

When I type 'info registers', I see 'DECR 3919147695' at the top of the screen, so it appears to be working. I think we need more information from you.

qemu-system-ppc version:

gcc version (gcc -v):

Host info: Ubuntu <version>

Front-end (GTK, SDL, ...):

Compile command: ./configure ....

Note: please respond to this email with "reply all". That way everyone can try to help you.

Quoted 2 lines · Дмитрий Смирнов

All the registers, which are printing with 'info registers', dump to file before (./target-ppc/translate.c), but there is no SPR_DECR.
I tried to add in 'translate.c' and ./monitor.c some code (print of cpu_ppc_load_decr(env), print of env->spr[SPR_DECR]), but I have zero meaning. Also I tried 'p $decr' with the same answer.

By zero meaning, do you mean this: decr = 0

Quoted 1 line

Maybe I have this problem, because I using VirtualBox->Ubuntu->Qemu?

This should not be a problem. An emulator can run anywhere.

Quoted 15 lines

2016-12-27 18:52 GMT+03:00 G 3 <[email protected]>:

On Dec 27, 2016, at 10:38 AM, [email protected] wrote:

Hello, devs!

I'm using ppc-softmmu target, and in my qemu monitor I need to print the SPR_DECR meaning, but I don't understand how.
Could anyone help me with my problem?

Best regards!

I think you want to try the 'info registers' command in the monitor.

#2 lore raw

qemu-system-ppc version: 2.5.1.1

Ubuntu 14.04
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) GTK 2.0, libsdl1.2-dev
./configure --target-list="ppc-softmmu" --disable-xfsctl

By zero meaning, do you mean this: decr = 0

Yes.

2016-12-27 21:16 GMT+03:00 G 3 <[email protected]>:

Quoted 52 lines

When I type 'info registers', I see 'DECR 3919147695' at the top of the screen, so it appears to be working. I think we need more information from you.

qemu-system-ppc version:

gcc version (gcc -v):

Host info: Ubuntu <version>

Front-end (GTK, SDL, ...):

Compile command: ./configure ....

Note: please respond to this email with "reply all". That way everyone can try to help you.

On Dec 27, 2016, at 1:06 PM, Дмитрий Смирнов wrote:

All the registers, which are printing with 'info registers', dump to file

Quoted 5 lines

before (./target-ppc/translate.c), but there is no SPR_DECR. I tried to add in 'translate.c' and ./monitor.c some code (print of cpu_ppc_load_decr(env), print of env->spr[SPR_DECR]), but I have zero meaning. Also I tried 'p $decr' with the same answer.

By zero meaning, do you mean this: decr = 0

Maybe I have this problem, because I using VirtualBox->Ubuntu->Qemu?

Quoted 1 line

This should not be a problem. An emulator can run anywhere.

Quoted 16 lines

2016-12-27 18:52 GMT+03:00 G 3 <[email protected]>:

On Dec 27, 2016, at 10:38 AM, [email protected] wrote:

Hello, devs!

I'm using ppc-softmmu target, and in my qemu monitor I need to print the SPR_DECR meaning, but I don't understand how.
Could anyone help me with my problem?

Best regards!

I think you want to try the 'info registers' command in the monitor.

author
#3 lore raw

The version of qemu-system-ppc you are using is kind of old. Version 2.8.0 is the newest version. I suggest trying the newest version before trying to fix a broken feature in an older version.

http://wiki.qemu.org/Download

Quoted 56 lines · Дмитрий Смирнов

qemu-system-ppc version: 2.5.1.1

Ubuntu 14.04
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) GTK 2.0, libsdl1.2-dev
./configure --target-list="ppc-softmmu" --disable-xfsctl

By zero meaning, do you mean this: decr = 0
Yes.

2016-12-27 21:16 GMT+03:00 G 3 <[email protected]>:
When I type 'info registers', I see 'DECR 3919147695' at the top of the screen, so it appears to be working. I think we need more information from you.

qemu-system-ppc version:

gcc version (gcc -v):

Host info: Ubuntu <version>

Front-end (GTK, SDL, ...):

Compile command: ./configure ....

Note: please respond to this email with "reply all". That way everyone can try to help you.

On Dec 27, 2016, at 1:06 PM, Дмитрий Смирнов wrote:

All the registers, which are printing with 'info registers', dump to file before (./target-ppc/translate.c), but there is no SPR_DECR.
I tried to add in 'translate.c' and ./monitor.c some code (print of cpu_ppc_load_decr(env), print of env->spr[SPR_DECR]), but I have zero meaning. Also I tried 'p $decr' with the same answer.

By zero meaning, do you mean this: decr = 0

Maybe I have this problem, because I using VirtualBox->Ubuntu->Qemu?

This should not be a problem. An emulator can run anywhere.

2016-12-27 18:52 GMT+03:00 G 3 <[email protected]>:

On Dec 27, 2016, at 10:38 AM, [email protected] wrote:

Hello, devs!

I'm using ppc-softmmu target, and in my qemu monitor I need to print the SPR_DECR meaning, but I don't understand how.
Could anyone help me with my problem?

Best regards!

I think you want to try the 'info registers' command in the monitor.

#4 lore raw

Unfortunately, I have to use version 2.5.1.1. Can I do something in this case?

2016-12-27 22:01 GMT+03:00 G 3 <[email protected]>:

Quoted 73 lines

The version of qemu-system-ppc you are using is kind of old. Version 2.8.0 is the newest version. I suggest trying the newest version before trying to fix a broken feature in an older version.

http://wiki.qemu.org/Download

On Dec 27, 2016, at 1:57 PM, Дмитрий Смирнов wrote:

qemu-system-ppc version: 2.5.1.1

Quoted 62 lines

Ubuntu 14.04
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) GTK 2.0, libsdl1.2-dev
./configure --target-list="ppc-softmmu" --disable-xfsctl

By zero meaning, do you mean this: decr = 0
Yes.

2016-12-27 21:16 GMT+03:00 G 3 <[email protected]>:
When I type 'info registers', I see 'DECR 3919147695' at the top of the screen, so it appears to be working. I think we need more information from you.

qemu-system-ppc version:

gcc version (gcc -v):

Host info: Ubuntu <version>

Front-end (GTK, SDL, ...):

Compile command: ./configure ....

Note: please respond to this email with "reply all". That way everyone can try to help you.

On Dec 27, 2016, at 1:06 PM, Дмитрий Смирнов wrote:

All the registers, which are printing with 'info registers', dump to file before (./target-ppc/translate.c), but there is no SPR_DECR. I tried to add in 'translate.c' and ./monitor.c some code (print of cpu_ppc_load_decr(env), print of env->spr[SPR_DECR]), but I have zero meaning. Also I tried 'p $decr' with the same answer.

By zero meaning, do you mean this: decr = 0

Maybe I have this problem, because I using VirtualBox->Ubuntu->Qemu?

This should not be a problem. An emulator can run anywhere.

2016-12-27 18:52 GMT+03:00 G 3 <[email protected]>:

On Dec 27, 2016, at 10:38 AM, [email protected] wrote:

Hello, devs!

I'm using ppc-softmmu target, and in my qemu monitor I need to print the SPR_DECR meaning, but I don't understand how.
Could anyone help me with my problem?

Best regards!

I think you want to try the 'info registers' command in the monitor.

#5 lore raw
Quoted 1 line · Дмитрий Смирнов

Unfortunately, I have to use version 2.5.1.1. Can I do something in this case?

Why do you need to use it? What is the guest operating system you are using? Version 2.8 has a lot more bug fixes in it. You might find it easier to use.

Quoted 67 lines

2016-12-27 22:01 GMT+03:00 G 3 <[email protected]>:
The version of qemu-system-ppc you are using is kind of old. Version 2.8.0 is the newest version. I suggest trying the newest version before trying to fix a broken feature in an older version.

http://wiki.qemu.org/Download

On Dec 27, 2016, at 1:57 PM, Дмитрий Смирнов wrote:

qemu-system-ppc version: 2.5.1.1

Ubuntu 14.04
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) GTK 2.0, libsdl1.2-dev
./configure --target-list="ppc-softmmu" --disable-xfsctl

By zero meaning, do you mean this: decr = 0
Yes.

2016-12-27 21:16 GMT+03:00 G 3 <[email protected]>:
When I type 'info registers', I see 'DECR 3919147695' at the top of the screen, so it appears to be working. I think we need more information from you.

qemu-system-ppc version:

gcc version (gcc -v):

Host info: Ubuntu <version>

Front-end (GTK, SDL, ...):

Compile command: ./configure ....

Note: please respond to this email with "reply all". That way everyone can try to help you.

On Dec 27, 2016, at 1:06 PM, Дмитрий Смирнов wrote:

All the registers, which are printing with 'info registers', dump to file before (./target-ppc/translate.c), but there is no SPR_DECR.
I tried to add in 'translate.c' and ./monitor.c some code (print of cpu_ppc_load_decr(env), print of env->spr[SPR_DECR]), but I have zero meaning. Also I tried 'p $decr' with the same answer.

By zero meaning, do you mean this: decr = 0

Maybe I have this problem, because I using VirtualBox->Ubuntu->Qemu?

This should not be a problem. An emulator can run anywhere.

2016-12-27 18:52 GMT+03:00 G 3 <[email protected]>:

On Dec 27, 2016, at 10:38 AM, [email protected] wrote:

Hello, devs!

I'm using ppc-softmmu target, and in my qemu monitor I need to print the SPR_DECR meaning, but I don't understand how.
Could anyone help me with my problem?

Best regards!

I think you want to try the 'info registers' command in the monitor.

#6 lore raw

An old RealTime-OS. The requirements -- use QEMU 2.5.1.1

2016-12-27 22:18 GMT+03:00 Programmingkid <[email protected]>:

Quoted 87 lines · Дмитрий Смирнов
Quoted 2 lines

Unfortunately, I have to use version 2.5.1.1. Can I do something in this

case?

Why do you need to use it? What is the guest operating system you are using? Version 2.8 has a lot more bug fixes in it. You might find it easier to use.

Quoted 3 lines

2016-12-27 22:01 GMT+03:00 G 3 <[email protected]>:
The version of qemu-system-ppc you are using is kind of old. Version

2.8.0 is the newest version. I suggest trying the newest version before trying to fix a broken feature in an older version.

Quoted 13 lines

http://wiki.qemu.org/Download

On Dec 27, 2016, at 1:57 PM, Дмитрий Смирнов wrote:

qemu-system-ppc version: 2.5.1.1

Ubuntu 14.04
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) GTK 2.0, libsdl1.2-dev
./configure --target-list="ppc-softmmu" --disable-xfsctl

Quoted 6 lines

By zero meaning, do you mean this: decr = 0
Yes.

2016-12-27 21:16 GMT+03:00 G 3 <[email protected]>:
When I type 'info registers', I see 'DECR 3919147695' at the top of the

screen, so it appears to be working. I think we need more information from you.

Quoted 5 lines

qemu-system-ppc version:

gcc version (gcc -v):

Quoted 7 lines

Host info: Ubuntu <version>

Front-end (GTK, SDL, ...):

Compile command: ./configure ....

Note: please respond to this email with "reply all". That way everyone

can try to help you.

Quoted 4 lines · Дмитрий Смирнов

All the registers, which are printing with 'info registers', dump to

file before (./target-ppc/translate.c), but there is no SPR_DECR.

Quoted 1 line

I tried to add in 'translate.c' and ./monitor.c some code (print of

cpu_ppc_load_decr(env), print of env->spr[SPR_DECR]), but I have zero meaning. Also I tried 'p $decr' with the same answer.

Quoted 28 lines

By zero meaning, do you mean this: decr = 0

Maybe I have this problem, because I using VirtualBox->Ubuntu->Qemu?

This should not be a problem. An emulator can run anywhere.

2016-12-27 18:52 GMT+03:00 G 3 <[email protected]>:

On Dec 27, 2016, at 10:38 AM, [email protected] wrote:

Hello, devs!

I'm using ppc-softmmu target, and in my qemu monitor I need to print the SPR_DECR meaning, but I don't understand how.
Could anyone help me with my problem?

Best regards!

I think you want to try the 'info registers' command in the monitor.

#7 lore raw

I experience a similar situation with ReactOS. Have you tried it in QEMU 2.8.0 yet? If you haven't, it is possible the RealTime-OS might work.

Quoted 79 lines · Дмитрий Смирнов

An old RealTime-OS. The requirements -- use QEMU 2.5.1.1

2016-12-27 22:18 GMT+03:00 Programmingkid <[email protected]>:

Quoted 1 line · Дмитрий Смирнов

Unfortunately, I have to use version 2.5.1.1. Can I do something in this case?

Why do you need to use it? What is the guest operating system you are using? Version 2.8 has a lot more bug fixes in it. You might find it easier to use.

Quoted 67 lines

2016-12-27 22:01 GMT+03:00 G 3 <[email protected]>:
The version of qemu-system-ppc you are using is kind of old. Version 2.8.0 is the newest version. I suggest trying the newest version before trying to fix a broken feature in an older version.

http://wiki.qemu.org/Download

On Dec 27, 2016, at 1:57 PM, Дмитрий Смирнов wrote:

qemu-system-ppc version: 2.5.1.1

Ubuntu 14.04
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) GTK 2.0, libsdl1.2-dev
./configure --target-list="ppc-softmmu" --disable-xfsctl

By zero meaning, do you mean this: decr = 0
Yes.

2016-12-27 21:16 GMT+03:00 G 3 <[email protected]>:
When I type 'info registers', I see 'DECR 3919147695' at the top of the screen, so it appears to be working. I think we need more information from you.

qemu-system-ppc version:

gcc version (gcc -v):

Host info: Ubuntu <version>

Front-end (GTK, SDL, ...):

Compile command: ./configure ....

Note: please respond to this email with "reply all". That way everyone can try to help you.

On Dec 27, 2016, at 1:06 PM, Дмитрий Смирнов wrote:

All the registers, which are printing with 'info registers', dump to file before (./target-ppc/translate.c), but there is no SPR_DECR.
I tried to add in 'translate.c' and ./monitor.c some code (print of cpu_ppc_load_decr(env), print of env->spr[SPR_DECR]), but I have zero meaning. Also I tried 'p $decr' with the same answer.

By zero meaning, do you mean this: decr = 0

Maybe I have this problem, because I using VirtualBox->Ubuntu->Qemu?

This should not be a problem. An emulator can run anywhere.

2016-12-27 18:52 GMT+03:00 G 3 <[email protected]>:

On Dec 27, 2016, at 10:38 AM, [email protected] wrote:

Hello, devs!

I'm using ppc-softmmu target, and in my qemu monitor I need to print the SPR_DECR meaning, but I don't understand how.
Could anyone help me with my problem?

Best regards!

I think you want to try the 'info registers' command in the monitor.

#8 lore raw

I haven't tried QEMU 2.8.0, because the job-task requires use QEMU 2.5.1.1. So I need to decide this problem on 2.5.1.1 version:(

2016-12-27 22:32 GMT+03:00 Programmingkid <[email protected]>:

Quoted 98 lines

I experience a similar situation with ReactOS. Have you tried it in QEMU 2.8.0 yet? If you haven't, it is possible the RealTime-OS might work.

Quoted 7 lines · Дмитрий Смирнов

An old RealTime-OS. The requirements -- use QEMU 2.5.1.1

2016-12-27 22:18 GMT+03:00 Programmingkid <[email protected]>:

Quoted 1 line · Дмитрий Смирнов

Unfortunately, I have to use version 2.5.1.1. Can I do something in

this case?

Quoted 2 lines

Why do you need to use it? What is the guest operating system you are

using? Version 2.8 has a lot more bug fixes in it. You might find it easier to use.

Quoted 4 lines
Quoted 4 lines

2016-12-27 22:01 GMT+03:00 G 3 <[email protected]>:
The version of qemu-system-ppc you are using is kind of old. Version

2.8.0 is the newest version. I suggest trying the newest version before trying to fix a broken feature in an older version.

Quoted 13 lines
Quoted 13 lines

http://wiki.qemu.org/Download

On Dec 27, 2016, at 1:57 PM, Дмитрий Смирнов wrote:

qemu-system-ppc version: 2.5.1.1

Ubuntu 14.04
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) GTK 2.0, libsdl1.2-dev
./configure --target-list="ppc-softmmu" --disable-xfsctl

Quoted 6 lines
Quoted 6 lines

By zero meaning, do you mean this: decr = 0
Yes.

2016-12-27 21:16 GMT+03:00 G 3 <[email protected]>:
When I type 'info registers', I see 'DECR 3919147695' at the top of

the screen, so it appears to be working. I think we need more information from you.

Quoted 5 lines
Quoted 5 lines

qemu-system-ppc version:

gcc version (gcc -v):

Quoted 7 lines
Quoted 7 lines

Host info: Ubuntu <version>

Front-end (GTK, SDL, ...):

Compile command: ./configure ....

Note: please respond to this email with "reply all". That way everyone

can try to help you.

Quoted 4 lines
Quoted 4 lines · Дмитрий Смирнов

All the registers, which are printing with 'info registers', dump to

file before (./target-ppc/translate.c), but there is no SPR_DECR.

Quoted 1 line
Quoted 1 line

I tried to add in 'translate.c' and ./monitor.c some code (print of

cpu_ppc_load_decr(env), print of env->spr[SPR_DECR]), but I have zero meaning. Also I tried 'p $decr' with the same answer.

Quoted 8 lines
Quoted 8 lines

By zero meaning, do you mean this: decr = 0

Maybe I have this problem, because I using VirtualBox->Ubuntu->Qemu?

This should not be a problem. An emulator can run anywhere.

Quoted 8 lines
Quoted 8 lines

2016-12-27 18:52 GMT+03:00 G 3 <[email protected]>:

On Dec 27, 2016, at 10:38 AM, [email protected] wrote:

Hello, devs!

I'm using ppc-softmmu target, and in my qemu monitor I need to print

the

Quoted 14 lines
Quoted 12 lines

SPR_DECR meaning, but I don't understand how.
Could anyone help me with my problem?

Best regards!

I think you want to try the 'info registers' command in the monitor.

#9 lore raw
Quoted 2 lines · Дмитрий Смирнов

I haven't tried QEMU 2.8.0, because the job-task requires use QEMU 2.5.1.1. So I need to decide this problem on 2.5.1.1 version:(

You haven't really explained what the job-task is or why it requires 2.5.1.1 in particular. Does this RTOS not work on more recent versions?

That said, it looks like QEMU has supported displaying the DECR value in the monitor 'info registers' command for a very long time, so it probably should work in 2.5. Could you say clearly:
* what monitor command you're trying
* what output it gives
* why you think that's not right and what the output should be
?

thanks
-- PMM