Alpha system emulation
cover Alpha system emulation
This is good enough to begin booting the Linux kernel. We do not get all the way to userspace yet; I've found two kernel bugs so far leading to immediate crashes, I suspect there are more that have crept in. At the moment we seem to get into the cpu_idle loop without managing to schedule the first kernel_thread.
Posted to begin getting comments.
Source to the QEMU PALcode can be found at
http://repo.or.cz/w/qemu-palcode.git
Several patches for the kernel to recover from recent breakage at
http://repo.or.cz/w/linux-2.6/rth.git axp-qemu
r~
Richard Henderson (5):
Export the unassigned_mem read/write functions.
target-alpha: Disassemble EV6 PALcode instructions.
pci: Export pci_to_cpu_addr.
target-alpha: Prepare for Alpha BIOS images.
target-alpha: Emulate Alpha SX164.
Makefile | 3 +- Makefile.target | 4 +- alpha-dis.c | 4 - configure | 3 +- cpu-common.h | 7 + cpu-exec.c | 16 +- default-configs/alpha-softmmu.mak | 9 + dis-asm.h | 3 + disas.c | 2 +- exec.c | 12 +- hw/alpha_palcode.c | 1048 ------------------------------------ hw/alpha_pci.c | 327 ++++++++++++ hw/alpha_pyxis.c | 1057 +++++++++++++++++++++++++++++++++++++ hw/alpha_sx164.c | 195 +++++++ hw/alpha_sys.h | 41 ++ hw/pci.c | 3 +- hw/pci.h | 1 + linux-user/main.c | 39 +- pc-bios/palcode-sx164 | Bin 0 -> 107781 bytes target-alpha/cpu.h | 337 +++++------- target-alpha/exec.h | 7 +- target-alpha/helper.c | 630 ++++++++++------------ target-alpha/helper.h | 34 +- target-alpha/machine.c | 84 +++ target-alpha/op_helper.c | 249 ++++------ target-alpha/translate.c | 422 +++++++++------- 26 files changed, 2543 insertions(+), 1994 deletions(-) create mode 100644 default-configs/alpha-softmmu.mak delete mode 100644 hw/alpha_palcode.c create mode 100644 hw/alpha_pci.c create mode 100644 hw/alpha_pyxis.c create mode 100644 hw/alpha_sx164.c create mode 100644 hw/alpha_sys.h create mode 100644 pc-bios/palcode-sx164 create mode 100644 target-alpha/machine.c
Signature · 1 line
1.7.4.2
PATCH 1/5 Export the unassigned_mem read/write functions.
--- cpu-common.h | 7 +++++++ exec.c | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-)
cpu-common.h +7 -0
@@ -45,6 +45,13 @@ static inline void cpu_register_physical_memory(target_phys_addr_t start_addr,cpu_register_physical_memory_offset (start_addr, size, phys_offset,0 ); } +extern CPUReadMemoryFunc unassigned_mem_readb; +extern CPUReadMemoryFunc unassigned_mem_readw; +extern CPUReadMemoryFunc unassigned_mem_readl; +extern CPUWriteMemoryFunc unassigned_mem_writeb; +extern CPUWriteMemoryFunc unassigned_mem_writew; +extern CPUWriteMemoryFunc unassigned_mem_writel; +ram_addr_t cpu_get_physical_page_desc (target_phys_addr_t addr);ram_addr_t qemu_ram_alloc_from_ptr (DeviceState *dev,const char *name,ram_addr_t size,void *host);
exec.c +6 -6
@@ -3090,7 +3090,7 @@ ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr)return ram_addr; } -static uint32_t unassigned_mem_readb (void *opaque,target_phys_addr_t addr) +uint32_t unassigned_mem_readb (void *opaque,target_phys_addr_t addr) {#ifdef DEBUG_UNASSIGNED printf ("Unassigned mem read " TARGET_FMT_plx"\n" , addr);
@@ -3101,7 +3101,7 @@ static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr)return 0 ; } -static uint32_t unassigned_mem_readw (void *opaque,target_phys_addr_t addr) +uint32_t unassigned_mem_readw (void *opaque,target_phys_addr_t addr) {#ifdef DEBUG_UNASSIGNED printf ("Unassigned mem read " TARGET_FMT_plx"\n" , addr);
@@ -3112,7 +3112,7 @@ static uint32_t unassigned_mem_readw(void *opaque, target_phys_addr_t addr)return 0 ; } -static uint32_t unassigned_mem_readl (void *opaque,target_phys_addr_t addr) +uint32_t unassigned_mem_readl (void *opaque,target_phys_addr_t addr) {#ifdef DEBUG_UNASSIGNED printf ("Unassigned mem read " TARGET_FMT_plx"\n" , addr);
@@ -3123,7 +3123,7 @@ static uint32_t unassigned_mem_readl(void *opaque, target_phys_addr_t addr)return 0 ; } -static void unassigned_mem_writeb (void *opaque,target_phys_addr_t addr,uint32_t val) +void unassigned_mem_writeb (void *opaque,target_phys_addr_t addr,uint32_t val) {#ifdef DEBUG_UNASSIGNED printf ("Unassigned mem write " TARGET_FMT_plx" = 0x%x\n" , addr, val);
@@ -3133,7 +3133,7 @@ static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_#endif } -static void unassigned_mem_writew (void *opaque,target_phys_addr_t addr,uint32_t val) +void unassigned_mem_writew (void *opaque,target_phys_addr_t addr,uint32_t val) {#ifdef DEBUG_UNASSIGNED printf ("Unassigned mem write " TARGET_FMT_plx" = 0x%x\n" , addr, val);
@@ -3143,7 +3143,7 @@ static void unassigned_mem_writew(void *opaque, target_phys_addr_t addr, uint32_#endif } -static void unassigned_mem_writel (void *opaque,target_phys_addr_t addr,uint32_t val) +void unassigned_mem_writel (void *opaque,target_phys_addr_t addr,uint32_t val) {#ifdef DEBUG_UNASSIGNED printf ("Unassigned mem write " TARGET_FMT_plx" = 0x%x\n" , addr, val);
Signature · 1 line
1.7.4.2
PATCH 2/5 target-alpha: Disassemble EV6 PALcode instructions.
In reply to Richard HendersonThe QEMU emulation PALcode will use EV6 PALcode insns regardless of the "real" cpu instruction set being emulated.
--- alpha-dis.c | 4 ---- dis-asm.h | 3 +++ disas.c | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-)
alpha-dis.c +0 -4
@@ -238,10 +238,6 @@ extern const unsigned alpha_num_operands;#define AXP_REG_SP 30#define AXP_REG_ZERO 31 -#define bfd_mach_alpha_ev4 0x10 -#define bfd_mach_alpha_ev5 0x20 -#define bfd_mach_alpha_ev6 0x30 -enum bfd_reloc_code_real {BFD_RELOC_23_PCREL_S2 ,BFD_RELOC_ALPHA_HINT
dis-asm.h +3 -0
@@ -184,6 +184,9 @@ enum bfd_architecture#define bfd_mach_sh5 0x50 bfd_arch_alpha, /* Dec Alpha */#define bfd_mach_alpha 1 +#define bfd_mach_alpha_ev4 0x10 +#define bfd_mach_alpha_ev5 0x20 +#define bfd_mach_alpha_ev6 0x30 bfd_arch_arm, /* Advanced Risc Machines ARM */#define bfd_mach_arm_unknown 0#define bfd_mach_arm_2 1
disas.c +1 -1
@@ -205,7 +205,7 @@ void target_disas(FILE *out, target_ulong code, target_ulong size, int flags) disasm_info.mach = bfd_mach_sh4; print_insn = print_insn_sh;#elif defined(TARGET_ALPHA ) - disasm_info.mach = bfd_mach_alpha; + disasm_info.mach = bfd_mach_alpha_ev6; print_insn = print_insn_alpha;#elif defined(TARGET_CRIS )if (flags !=32 ) {
Signature · 1 line
1.7.4.2
PATCH 3/5 pci: Export pci_to_cpu_addr.
In reply to Richard HendersonThis is, more or less, the read accessor to pci_bus_set_mem_base as a write accessor. It will be needed for implementing sparse memory spaces for Alpha.
--- hw/pci.c | 3 +-- hw/pci.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-)
hw/pci.c +1 -2
@@ -793,8 +793,7 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name,return pci_dev; } -static target_phys_addr_t pci_to_cpu_addr (PCIBus *bus, -target_phys_addr_t addr) +target_phys_addr_t pci_to_cpu_addr (PCIBus *bus,target_phys_addr_t addr) {return addr + bus->mem_base; }
hw/pci.h +1 -0
@@ -242,6 +242,7 @@ void pci_device_reset(PCIDevice *dev);void pci_bus_reset (PCIBus *bus);void pci_bus_set_mem_base (PCIBus *bus,target_phys_addr_t base); +target_phys_addr_t pci_to_cpu_addr (PCIBus *bus,target_phys_addr_t addr);PCIDevice *pci_nic_init (NICInfo *nd,const char *default_model,const char *default_devaddr);
Signature · 1 line
1.7.4.2
PATCH 4/5 target-alpha: Prepare for Alpha BIOS images.
In reply to Richard Henderson--- Makefile | 3 ++- configure | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
Makefile +2 -1
@@ -184,7 +184,8 @@ pxe-rtl8139.bin pxe-virtio.bin \ bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \ multiboot.bin linuxboot.bin \ s390-zipl.rom \ -spapr-rtas.bin slof.bin +spapr-rtas.bin slof.bin \ +palcode-sx164 else BLOBS= endif
configure +1 -1
@@ -3454,7 +3454,7 @@ FILES="Makefile tests/Makefile" FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit" FILES="$FILES pc-bios/optionrom/Makefile pc-bios/keymaps" FILES="$FILES roms/seabios/Makefile roms/vgabios/Makefile" -for bios_file in $source_path/pc-bios/*.bin $source_path/pc-bios/*.dtb $source_path/pc-bios/openbios-*; do +for bios_file in $source_path/pc-bios/*.bin $source_path/pc-bios/*.dtb $source_path/pc-bios/openbios-* $source_path/pc-bios/palcode-*; do FILES="$FILES pc-bios/`basename $bios_file`" done mkdir -p $DIRS
Signature · 1 line
1.7.4.2
PATCH 5/5 target-alpha: Emulate Alpha SX164.
In reply to Richard HendersonDelete the old partial support for alpha-softmmu, which kind-of tried to emulate real HW and its PALcode. Instead, use a custom HW interface for a custom PALcode. Wire up as much of the device emulation as is available.
This is enough to boot the Linux kernel until it starts scheduling.
--- Makefile.target | 4 +- configure | 1 + cpu-exec.c | 16 +- default-configs/alpha-softmmu.mak | 9 + hw/alpha_palcode.c | 1048 ------------------------------------ hw/alpha_pci.c | 327 ++++++++++++ hw/alpha_pyxis.c | 1057 +++++++++++++++++++++++++++++++++++++ hw/alpha_sx164.c | 195 +++++++ hw/alpha_sys.h | 41 ++ linux-user/main.c | 39 +- pc-bios/palcode-sx164 | Bin 0 -> 107781 bytes target-alpha/cpu.h | 337 +++++------- target-alpha/exec.h | 7 +- target-alpha/helper.c | 630 ++++++++++------------ target-alpha/helper.h | 34 +- target-alpha/machine.c | 84 +++ target-alpha/op_helper.c | 249 ++++------ target-alpha/translate.c | 422 +++++++++------- 18 files changed, 2521 insertions(+), 1979 deletions(-) create mode 100644 default-configs/alpha-softmmu.mak delete mode 100644 hw/alpha_palcode.c create mode 100644 hw/alpha_pci.c create mode 100644 hw/alpha_pyxis.c create mode 100644 hw/alpha_sx164.c create mode 100644 hw/alpha_sys.h create mode 100644 pc-bios/palcode-sx164 create mode 100644 target-alpha/machine.c
Makefile.target +3 -1
@@ -362,7 +362,9 @@ obj-m68k-y += m68k-semi.o dummy_m68k.o obj-s390x-y = s390-virtio-bus.o s390-virtio.o -obj-alpha-y = alpha_palcode.o +obj-alpha-y += i8259.o mc146818rtc.o +obj-alpha-y += vga.o cirrus_vga.o +obj-alpha-y += alpha_pci.o alpha_sx164.o alpha_pyxis.o main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
configure +1 -0
@@ -1011,6 +1011,7 @@ if test -z "$target_list" ; then target_list="\ i386-softmmu \ x86_64-softmmu \ +alpha-softmmu \ arm-softmmu \ cris-softmmu \ lm32-softmmu \
cpu-exec.c +13 -3
@@ -529,9 +529,19 @@ int cpu_exec(CPUState *env1) next_tb =0 ; }#elif defined(TARGET_ALPHA ) -if (interrupt_request &CPU_INTERRUPT_HARD ) { -do_interrupt (env); - next_tb =0 ; +if (env->pal_mode ==0 && (env->ps &7 ) ==0 ) { +int idx =-1 ; +if (interrupt_request &CPU_INTERRUPT_HARD ) { + idx =EXCP_DEV_INTERRUPT ; + } +if (interrupt_request &CPU_INTERRUPT_TIMER ) { + idx =EXCP_CLK_INTERRUPT ; + } +if (idx >=0 ) { + env->exception_index = idx; +do_interrupt (env); + next_tb =0 ; + } }#elif defined(TARGET_CRIS ) if (interrupt_request & CPU_INTERRUPT_HARD
default-configs/alpha-softmmu.mak new file +9 -0
@@ -0,0 +1,9 @@ +# Default configuration for alpha-softmmu + +include pci.mak +CONFIG_SERIAL=y +CONFIG_I8254=y +CONFIG_VGA_PCI=y +CONFIG_IDE_CORE=y +CONFIG_IDE_QDEV=y +CONFIG_VMWARE_VGA=y
hw/alpha_palcode.c deleted +0 -1048
1,048 lines not on this page · raw message
hw/alpha_pci.c new file +327 -0
327 lines not on this page · raw message
hw/alpha_pyxis.c new file +1057 -0
1,057 lines not on this page · raw message
hw/alpha_sx164.c new file +195 -0
195 lines not on this page · raw message
hw/alpha_sys.h new file +41 -0
41 lines not on this page · raw message
linux-user/main.c +11 -28
@@ -2526,6 +2526,11 @@ void cpu_loop (CPUState *env)fprintf (stderr,"Machine check exception. Exit\n" );exit (1 );break ; +case EXCP_CLK_INTERRUPT : +case EXCP_DEV_INTERRUPT : +fprintf (stderr,"External interrupt. Exit\n" ); +exit (1 ); +break ;case EXCP_ARITH : env->lock_addr =-1 ; info.si_signo =TARGET_SIGFPE ;
@@ -2534,41 +2539,21 @@ void cpu_loop (CPUState *env) info._sifields._sigfault._addr = env->pc;queue_signal (env, info.si_signo, &info);break ; -case EXCP_HW_INTERRUPT : -fprintf (stderr,"External interrupt. Exit\n" ); -exit (1 ); -break ; -case EXCP_DFAULT : +case EXCP_MMFAULT : env->lock_addr =-1 ; info.si_signo =TARGET_SIGSEGV ; info.si_errno =0 ; - info.si_code = (page_get_flags (env->ipr[IPR_EXC_ADDR ]) &PAGE_VALID + info.si_code = (page_get_flags (env->trap_arg0) &PAGE_VALID ?TARGET_SEGV_ACCERR :TARGET_SEGV_MAPERR ); - info._sifields._sigfault._addr = env->ipr[IPR_EXC_ADDR ]; + info._sifields._sigfault._addr = env->trap_arg0;queue_signal (env, info.si_signo, &info);break ; -case EXCP_DTB_MISS_PAL : -fprintf (stderr,"MMU data TLB miss in PALcode\n" ); -exit (1 ); -break ; -case EXCP_ITB_MISS : -fprintf (stderr,"MMU instruction TLB miss\n" ); -exit (1 ); -break ; -case EXCP_ITB_ACV : -fprintf (stderr,"MMU instruction access violation\n" ); -exit (1 ); -break ; -case EXCP_DTB_MISS_NATIVE : -fprintf (stderr,"MMU data TLB miss\n" ); -exit (1 ); -break ;case EXCP_UNALIGN : env->lock_addr =-1 ; info.si_signo =TARGET_SIGBUS ; info.si_errno =0 ; info.si_code =TARGET_BUS_ADRALN ; - info._sifields._sigfault._addr = env->ipr[IPR_EXC_ADDR ]; + info._sifields._sigfault._addr = env->trap_arg0;queue_signal (env, info.si_signo, &info);break ;case EXCP_OPCDEC :
@@ -2583,9 +2568,9 @@ void cpu_loop (CPUState *env)case EXCP_FEN :/* No-op. Linux simply re-enables the FPU. */ break ; - case EXCP_CALL_PAL ... (EXCP_CALL_PALP - 1): +case EXCP_CALL_PAL : env->lock_addr =-1 ; -switch ((trapnr >>6 ) |0x80 ) { +switch (env->error_code) {case 0x80 :/* BPT */ info.si_signo =TARGET_SIGTRAP ;
@@ -2676,8 +2661,6 @@ void cpu_loop (CPUState *env) goto do_sigill; }break ; - case EXCP_CALL_PALP ... (EXCP_CALL_PALE - 1): - goto do_sigill;case EXCP_DEBUG : info.si_signo =gdb_handlesig (env,TARGET_SIGTRAP );if (info.si_signo) {
pc-bios/palcode-sx164 new file binary +0 -0
target-alpha/cpu.h +136 -201
209 lines not on this page · raw message
target-alpha/helper.c +281 -349
630 lines not on this page · raw message
target-alpha/machine.c new file +84 -0
84 lines not on this page · raw message
target-alpha/op_helper.c +101 -148
249 lines not on this page · raw message
target-alpha/translate.c +243 -179
422 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.4.2
Part of the diff is not shown here. View the raw message.
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
Quoted 4 lines · Richard Henderson
Delete the old partial support for alpha-softmmu, which kind-of tried to emulate real HW and its PALcode. Instead, use a custom HW interface for a custom PALcode. Wire up as much of the device emulation as is available.
Mind to split it up? I'm having a hard time reading such huge patches O_o. Awesome work, btw :).
Alex
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
Quoted 1 line · Alexander Graf
Mind to split it up? I'm having a hard time reading such huge patches
O_o. Awesome work, btw :).
What sort of split would you like to see?
I thought about it, but there's not too many splits that actually compile individually.
r~
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
Quoted 7 lines · Richard Henderson
Quoted 1 line · Alexander Graf
Mind to split it up? I'm having a hard time reading such huge patches
O_o. Awesome work, btw :).What sort of split would you like to see?
I thought about it, but there's not too many splits that actually compile individually.
Yeah, I was in a similar dilemma. I'm pretty sure you can at least split linux-user, device emulation and cpu emulation patches :). Usually, I just try to split things by file and see if it's easy enough to get back to bisectability using a script I got from Avi a while back:
#!/bin/bash -e
for commit in $(git rev-list --reverse "$@"); do
echo "Commit $commit"
git checkout "$commit"
make -j
done
Alex
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
In reply to Richard HendersonQuoted 6 lines · Richard Henderson
Delete the old partial support for alpha-softmmu, which kind-of tried to emulate real HW and its PALcode. Instead, use a custom HW interface for a custom PALcode. Wire up as much of the device emulation as is available.
pc-bios/palcode-sx164 | Bin 0 -> 107781 bytes
My personal opinion is that if we have the binary blob in qemu git we should also have its corresponding source code.
(plus it should be in the same commit that adds it to configure's list of files, because configure doesn't do the right thing for missing binary blobs)
-- PMM
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
Quoted 11 lines · Peter Maydell
Quoted 6 lines · Richard Henderson
Delete the old partial support for alpha-softmmu, which kind-of tried to emulate real HW and its PALcode. Instead, use a custom HW interface for a custom PALcode. Wire up as much of the device emulation as is available.
pc-bios/palcode-sx164 | Bin 0 -> 107781 bytesMy personal opinion is that if we have the binary blob in qemu git we should also have its corresponding source code.
How does this differ from e.g. SeaBios?
And while I might agree that this ought to be in-tree, this isn't true for any of the other blobs we currently have in-tree. We don't really have any configury for cross-compilation of the bios bits.
r~
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
Quoted 13 lines · Richard Henderson
Quoted 11 lines · Peter Maydell
Quoted 6 lines · Richard Henderson
Delete the old partial support for alpha-softmmu, which kind-of tried to emulate real HW and its PALcode. Instead, use a custom HW interface for a custom PALcode. Wire up as much of the device emulation as is available.
pc-bios/palcode-sx164 | Bin 0 -> 107781 bytes
My personal opinion is that if we have the binary blob in qemu git we should also have its corresponding source code.
Quoted 5 lines
How does this differ from e.g. SeaBios?
And while I might agree that this ought to be in-tree, this isn't true for any of the other blobs we currently have in-tree. We don't really have any configury for cross-compilation of the bios bits.
We try to keep a reference in pc-bios/README on where it comes from and Anthony usually wants you to also add git submodule magic for easy cloning :).
Alex
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
Quoted 3 lines · Alexander Graf
We try to keep a reference in pc-bios/README on where it comes from and Anthony usually wants you to also add git submodule magic for easy cloning :).
The README is easy. I don't know what a git submodule is. Pointers are very welcome...
r~
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
Quoted 7 lines · Richard Henderson
Quoted 3 lines · Alexander Graf
We try to keep a reference in pc-bios/README on where it comes from and Anthony usually wants you to also add git submodule magic for easy cloning :).
The README is easy. I don't know what a git submodule is. Pointers are very welcome...
Pointers are easy: http://patchwork.ozlabs.org/patch/90696/
I personally have no clue about them though - better to pester Anthony for details :).
Alex
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
Quoted 8 lines · Alexander Graf
Quoted 5 lines · Richard Henderson
Quoted 3 lines · Alexander Graf
We try to keep a reference in pc-bios/README on where it comes from and Anthony usually wants you to also add git submodule magic for easy cloning :).
Quoted 6 lines
Quoted 2 lines
The README is easy. I don't know what a git submodule is. Pointers are very welcome...
Pointers are easy: http://patchwork.ozlabs.org/patch/90696/
I personally have no clue about them though - better to pester Anthony for details :).
All that is done just with
git submodule add git://repo.or.cz/qemu-palcode.git roms/qemu-palcode
Paolo
Re: [Qemu-devel] [PATCH 5/5] target-alpha: Emulate Alpha SX164.
In reply to Richard HendersonQuoted 8 lines · Richard Henderson
Quoted 5 lines · Peter Maydell
Quoted 1 line · Richard Henderson
pc-bios/palcode-sx164 | Bin 0 -> 107781 bytes
My personal opinion is that if we have the binary blob in qemu git we should also have its corresponding source code.
How does this differ from e.g. SeaBios?
I think that ought to follow the same rule: 'git clone' and making a release tarball from a git repo should both either
(a) not ship a binary blob
or (b) include the sources which made up that binary blob
I know this isn't exactly where we are today; to some extent I'm trying to see if anybody else agrees with this position...
Quoted 2 lines
We don't really have any configury for cross-compilation of the bios bits.
Yes, this is a difficult problem (which also holds for test cases); I'm not objecting to having the blobs in git and in tarballs, I just want the sources too.
-- PMM