Re: [Qemu-devel] [V2,1/7] nios2: Add disas entries

2016-10-31 Thread Marek Vasut
On 10/31/2016 10:27 PM, Romain Naour wrote:
> Hi Marek, all,

Hi,

> Le 18/10/2016 à 06:17, Marek Vasut a écrit :
>> On 10/15/2016 03:15 PM, Romain Naour wrote:
>>> Hi Marek,
>>
>> Hi!
>>
>>> Le 28/09/2016 à 01:30, Marek Vasut a écrit :
 Add nios2 disassembler support. This patch is composed from binutils files
 from commit "Opcodes and assembler support for Nios II R2". The files from
 binutils used in this patch are:

 include/opcode/nios2.h
 include/opcode/nios2r1.h
 include/opcode/nios2r2.h
 opcodes/nios2-opc.c
 opcodes/nios2-dis.c
>>>
>>> With Waldemar Brodkorb and I, we tested this series using 10m50 kernel 
>>> defconfig
>>> with Buildroot generated system. In order to ease the test, we added the 
>>> device
>>> tree and a initramfs to the kernel image.
>>>
>>> Here is the result:
>>>
>>> Welcome to Buildroot
>>> # cat /proc/cpuinfo
>>> CPU:Nios II/fast
>>> MMU:present
>>> FPU:none
>>> Clocking:   75.00 MHz
>>> BogoMips:   150.00
>>> Calibration:7500 loops
>>> HW:
>>>  MUL:   yes
>>>  MULX:  no
>>>  DIV:   yes
>>> Icache: 32kB, line length: 32
>>> Dcache: 32kB, line length: 32
>>> TLB:16 ways, 256 entries, 8 PID bits
>>> # uname -a
>>> Linux buildroot 4.8.1 #2 Fri Oct 14 19:10:18 CEST 2016 nios2 GNU/Linux
>>>
>>> When this series will be accepted in Qemu, I'll add a demo defconfig in
>>> Buildroot in order to ease runtime testing.
>>>
>>> Tested-by: Romain Naour 
>>
>> Great, thanks ! I'm glad to see it really becomes usable for other
>> people too :)
>>
>> I handled the feedback and pushed updated patches to:
>> http://git.bfuser.eu/?p=marex/qemu.git;a=shortlog;h=refs/heads/nios2/master
>>
> 
> Thanks, I tried your latest nios2 Qemu (v3 series) + patch 2/3 v6 with a 4.8.5
> Linux kernel. It still boot :)

Great, thanks for checking :)

-- 
Best regards,
Marek Vasut



Re: [Qemu-devel] [V2,1/7] nios2: Add disas entries

2016-10-31 Thread Romain Naour
Hi Marek, all,

Le 18/10/2016 à 06:17, Marek Vasut a écrit :
> On 10/15/2016 03:15 PM, Romain Naour wrote:
>> Hi Marek,
> 
> Hi!
> 
>> Le 28/09/2016 à 01:30, Marek Vasut a écrit :
>>> Add nios2 disassembler support. This patch is composed from binutils files
>>> from commit "Opcodes and assembler support for Nios II R2". The files from
>>> binutils used in this patch are:
>>>
>>> include/opcode/nios2.h
>>> include/opcode/nios2r1.h
>>> include/opcode/nios2r2.h
>>> opcodes/nios2-opc.c
>>> opcodes/nios2-dis.c
>>
>> With Waldemar Brodkorb and I, we tested this series using 10m50 kernel 
>> defconfig
>> with Buildroot generated system. In order to ease the test, we added the 
>> device
>> tree and a initramfs to the kernel image.
>>
>> Here is the result:
>>
>> Welcome to Buildroot
>> # cat /proc/cpuinfo
>> CPU: Nios II/fast
>> MMU: present
>> FPU: none
>> Clocking:75.00 MHz
>> BogoMips:150.00
>> Calibration: 7500 loops
>> HW:
>>  MUL:yes
>>  MULX:   no
>>  DIV:yes
>> Icache:  32kB, line length: 32
>> Dcache:  32kB, line length: 32
>> TLB: 16 ways, 256 entries, 8 PID bits
>> # uname -a
>> Linux buildroot 4.8.1 #2 Fri Oct 14 19:10:18 CEST 2016 nios2 GNU/Linux
>>
>> When this series will be accepted in Qemu, I'll add a demo defconfig in
>> Buildroot in order to ease runtime testing.
>>
>> Tested-by: Romain Naour 
> 
> Great, thanks ! I'm glad to see it really becomes usable for other
> people too :)
> 
> I handled the feedback and pushed updated patches to:
> http://git.bfuser.eu/?p=marex/qemu.git;a=shortlog;h=refs/heads/nios2/master
> 

Thanks, I tried your latest nios2 Qemu (v3 series) + patch 2/3 v6 with a 4.8.5
Linux kernel. It still boot :)

Best regards,
Romain




Re: [Qemu-devel] [V2,1/7] nios2: Add disas entries

2016-10-17 Thread Marek Vasut
On 10/15/2016 03:15 PM, Romain Naour wrote:
> Hi Marek,

Hi!

> Le 28/09/2016 à 01:30, Marek Vasut a écrit :
>> Add nios2 disassembler support. This patch is composed from binutils files
>> from commit "Opcodes and assembler support for Nios II R2". The files from
>> binutils used in this patch are:
>>
>> include/opcode/nios2.h
>> include/opcode/nios2r1.h
>> include/opcode/nios2r2.h
>> opcodes/nios2-opc.c
>> opcodes/nios2-dis.c
> 
> With Waldemar Brodkorb and I, we tested this series using 10m50 kernel 
> defconfig
> with Buildroot generated system. In order to ease the test, we added the 
> device
> tree and a initramfs to the kernel image.
> 
> Here is the result:
> 
> Welcome to Buildroot
> # cat /proc/cpuinfo
> CPU:  Nios II/fast
> MMU:  present
> FPU:  none
> Clocking: 75.00 MHz
> BogoMips: 150.00
> Calibration:  7500 loops
> HW:
>  MUL: yes
>  MULX:no
>  DIV: yes
> Icache:   32kB, line length: 32
> Dcache:   32kB, line length: 32
> TLB:  16 ways, 256 entries, 8 PID bits
> # uname -a
> Linux buildroot 4.8.1 #2 Fri Oct 14 19:10:18 CEST 2016 nios2 GNU/Linux
> 
> When this series will be accepted in Qemu, I'll add a demo defconfig in
> Buildroot in order to ease runtime testing.
> 
> Tested-by: Romain Naour 

Great, thanks ! I'm glad to see it really becomes usable for other
people too :)

I handled the feedback and pushed updated patches to:
http://git.bfuser.eu/?p=marex/qemu.git;a=shortlog;h=refs/heads/nios2/master

-- 
Best regards,
Marek Vasut



Re: [Qemu-devel] [V2,1/7] nios2: Add disas entries

2016-10-15 Thread Romain Naour
Hi Marek,

Le 28/09/2016 à 01:30, Marek Vasut a écrit :
> Add nios2 disassembler support. This patch is composed from binutils files
> from commit "Opcodes and assembler support for Nios II R2". The files from
> binutils used in this patch are:
> 
> include/opcode/nios2.h
> include/opcode/nios2r1.h
> include/opcode/nios2r2.h
> opcodes/nios2-opc.c
> opcodes/nios2-dis.c

With Waldemar Brodkorb and I, we tested this series using 10m50 kernel defconfig
with Buildroot generated system. In order to ease the test, we added the device
tree and a initramfs to the kernel image.

Here is the result:

Welcome to Buildroot
# cat /proc/cpuinfo
CPU:Nios II/fast
MMU:present
FPU:none
Clocking:   75.00 MHz
BogoMips:   150.00
Calibration:7500 loops
HW:
 MUL:   yes
 MULX:  no
 DIV:   yes
Icache: 32kB, line length: 32
Dcache: 32kB, line length: 32
TLB:16 ways, 256 entries, 8 PID bits
# uname -a
Linux buildroot 4.8.1 #2 Fri Oct 14 19:10:18 CEST 2016 nios2 GNU/Linux

When this series will be accepted in Qemu, I'll add a demo defconfig in
Buildroot in order to ease runtime testing.

Tested-by: Romain Naour 

Best regards,
Romain

> Signed-off-by: Marek Vasut 
> Cc: Chris Wulff 
> Cc: Jeff Da Silva 
> Cc: Ley Foon Tan 
> Cc: Sandra Loosemore 
> Cc: Yves Vandervennet 
> ---
> V2: Replace the nios2.c with GPL2 licensed version
> ---