* [Qemu-devel] [PATCH] target-arm: use extended address bits from supersection short descriptor
@ 2015-05-28 11:00 Sergey Fedorov
2015-06-01 17:02 ` Peter Maydell
2015-06-01 18:41 ` Peter Crosthwaite
0 siblings, 2 replies; 5+ messages in thread
From: Sergey Fedorov @ 2015-05-28 11:00 UTC (permalink / raw)
To: qemu-devel; +Cc: Peter Maydell, Sergey Fedorov
---
target-arm/helper.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target-arm/helper.c b/target-arm/helper.c
index 5d0f011..fc3f192 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -5333,6 +5333,8 @@ static int get_phys_addr_v6(CPUARMState *env, uint32_t address, int access_type,
if (desc & (1 << 18)) {
/* Supersection. */
phys_addr = (desc & 0xff000000) | (address & 0x00ffffff);
+ phys_addr |= ((uint64_t)extract32(desc, 20, 4) << 32);
+ phys_addr |= ((uint64_t)extract32(desc, 5, 4) << 36);
*page_size = 0x1000000;
} else {
/* Section. */
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] target-arm: use extended address bits from supersection short descriptor
2015-05-28 11:00 [Qemu-devel] [PATCH] target-arm: use extended address bits from supersection short descriptor Sergey Fedorov
@ 2015-06-01 17:02 ` Peter Maydell
2015-06-01 19:42 ` Sergey Fedorov
2015-06-01 18:41 ` Peter Crosthwaite
1 sibling, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2015-06-01 17:02 UTC (permalink / raw)
To: Sergey Fedorov; +Cc: QEMU Developers
On 28 May 2015 at 12:00, Sergey Fedorov <serge.fdrv@gmail.com> wrote:
> ---
> target-arm/helper.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/target-arm/helper.c b/target-arm/helper.c
> index 5d0f011..fc3f192 100644
> --- a/target-arm/helper.c
> +++ b/target-arm/helper.c
> @@ -5333,6 +5333,8 @@ static int get_phys_addr_v6(CPUARMState *env, uint32_t address, int access_type,
> if (desc & (1 << 18)) {
> /* Supersection. */
> phys_addr = (desc & 0xff000000) | (address & 0x00ffffff);
> + phys_addr |= ((uint64_t)extract32(desc, 20, 4) << 32);
> + phys_addr |= ((uint64_t)extract32(desc, 5, 4) << 36);
> *page_size = 0x1000000;
> } else {
> /* Section. */
This looks OK codewise, but I can't apply it because you've
forgotten the signed-off-by line.
Can you also provide a useful commit message, please?
Patches should pretty much always have a long-form
commit message, except possibly when they're part of
a large patch series, and rarely even then. (For instance
in this case it's worth mentioning that supporting these
extra bits is IMPDEF in v6 and in v7-without-LPAE but
required in LPAE.)
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] target-arm: use extended address bits from supersection short descriptor
2015-05-28 11:00 [Qemu-devel] [PATCH] target-arm: use extended address bits from supersection short descriptor Sergey Fedorov
2015-06-01 17:02 ` Peter Maydell
@ 2015-06-01 18:41 ` Peter Crosthwaite
2015-06-02 9:01 ` Sergey Fedorov
1 sibling, 1 reply; 5+ messages in thread
From: Peter Crosthwaite @ 2015-06-01 18:41 UTC (permalink / raw)
To: Sergey Fedorov; +Cc: Peter Maydell, qemu-devel@nongnu.org Developers
On Thu, May 28, 2015 at 4:00 AM, Sergey Fedorov <serge.fdrv@gmail.com> wrote:
> ---
> target-arm/helper.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/target-arm/helper.c b/target-arm/helper.c
> index 5d0f011..fc3f192 100644
> --- a/target-arm/helper.c
> +++ b/target-arm/helper.c
> @@ -5333,6 +5333,8 @@ static int get_phys_addr_v6(CPUARMState *env, uint32_t address, int access_type,
> if (desc & (1 << 18)) {
> /* Supersection. */
> phys_addr = (desc & 0xff000000) | (address & 0x00ffffff);
> + phys_addr |= ((uint64_t)extract32(desc, 20, 4) << 32);
> + phys_addr |= ((uint64_t)extract32(desc, 5, 4) << 36);
Outermost parentheses not needed.
Regards,
Peter
> *page_size = 0x1000000;
> } else {
> /* Section. */
> --
> 1.9.1
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] target-arm: use extended address bits from supersection short descriptor
2015-06-01 17:02 ` Peter Maydell
@ 2015-06-01 19:42 ` Sergey Fedorov
0 siblings, 0 replies; 5+ messages in thread
From: Sergey Fedorov @ 2015-06-01 19:42 UTC (permalink / raw)
To: Peter Maydell; +Cc: QEMU Developers
On 01.06.2015 20:02, Peter Maydell wrote:
> On 28 May 2015 at 12:00, Sergey Fedorov <serge.fdrv@gmail.com> wrote:
>> ---
>> target-arm/helper.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/target-arm/helper.c b/target-arm/helper.c
>> index 5d0f011..fc3f192 100644
>> --- a/target-arm/helper.c
>> +++ b/target-arm/helper.c
>> @@ -5333,6 +5333,8 @@ static int get_phys_addr_v6(CPUARMState *env, uint32_t address, int access_type,
>> if (desc & (1 << 18)) {
>> /* Supersection. */
>> phys_addr = (desc & 0xff000000) | (address & 0x00ffffff);
>> + phys_addr |= ((uint64_t)extract32(desc, 20, 4) << 32);
>> + phys_addr |= ((uint64_t)extract32(desc, 5, 4) << 36);
>> *page_size = 0x1000000;
>> } else {
>> /* Section. */
> This looks OK codewise, but I can't apply it because you've
> forgotten the signed-off-by line.
>
> Can you also provide a useful commit message, please?
> Patches should pretty much always have a long-form
> commit message, except possibly when they're part of
> a large patch series, and rarely even then. (For instance
> in this case it's worth mentioning that supporting these
> extra bits is IMPDEF in v6 and in v7-without-LPAE but
> required in LPAE.)
>
> thanks
> -- PMM
Thanks, Peter. Your comments are very useful, as always :) Sorry for
forgetting sign-off-by. Will resend the patch soon!
Best,
Sergey
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] target-arm: use extended address bits from supersection short descriptor
2015-06-01 18:41 ` Peter Crosthwaite
@ 2015-06-02 9:01 ` Sergey Fedorov
0 siblings, 0 replies; 5+ messages in thread
From: Sergey Fedorov @ 2015-06-02 9:01 UTC (permalink / raw)
To: Peter Crosthwaite; +Cc: Peter Maydell, qemu-devel@nongnu.org Developers
On 01.06.2015 21:41, Peter Crosthwaite wrote:
> On Thu, May 28, 2015 at 4:00 AM, Sergey Fedorov <serge.fdrv@gmail.com> wrote:
>> ---
>> target-arm/helper.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/target-arm/helper.c b/target-arm/helper.c
>> index 5d0f011..fc3f192 100644
>> --- a/target-arm/helper.c
>> +++ b/target-arm/helper.c
>> @@ -5333,6 +5333,8 @@ static int get_phys_addr_v6(CPUARMState *env, uint32_t address, int access_type,
>> if (desc & (1 << 18)) {
>> /* Supersection. */
>> phys_addr = (desc & 0xff000000) | (address & 0x00ffffff);
>> + phys_addr |= ((uint64_t)extract32(desc, 20, 4) << 32);
>> + phys_addr |= ((uint64_t)extract32(desc, 5, 4) << 36);
> Outermost parentheses not needed.
Thanks, Peter. Will fix it v3.
Best,
Sergey
>
> Regards,
> Peter
>
>> *page_size = 0x1000000;
>> } else {
>> /* Section. */
>> --
>> 1.9.1
>>
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-02 9:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-28 11:00 [Qemu-devel] [PATCH] target-arm: use extended address bits from supersection short descriptor Sergey Fedorov
2015-06-01 17:02 ` Peter Maydell
2015-06-01 19:42 ` Sergey Fedorov
2015-06-01 18:41 ` Peter Crosthwaite
2015-06-02 9:01 ` Sergey Fedorov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.