soc/integration/cpu_interface: more arch-specific address size fixes
authorGabriel L. Somlo <gsomlo@gmail.com>
Wed, 8 May 2019 19:36:13 +0000 (15:36 -0400)
committerGabriel L. Somlo <gsomlo@gmail.com>
Wed, 8 May 2019 20:03:36 +0000 (16:03 -0400)
commitc264a00964b67bbe504d2929a410dd624cac0a81
treefd5f33b1efa10e824dac592b68ce0c507ca17e6e
parenta8cbe4ad8416f7ea4af8be4cf3cb2616ddc78c90
soc/integration/cpu_interface: more arch-specific address size fixes

When generating arch-specific include files (generated/[mem|csr].h)
ensure address literal defines are suffixed by 'L', denoting their
'unsigned long' type. This inhibits compiler warnings when values
computed based on these constants are cast to pointers.

Also ensure csr_[read|write][b|w|l]() function declarations have
'unsigned long' address arguments.

Finally, restore the correct (32-bit, (unsigned *)) expected
behavior of the MMPTR() macro, inadvertently converted to an
arch-specific sized access (unsigned long *) by commit 5c2b8685.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
litex/soc/integration/cpu_interface.py
litex/soc/software/include/hw/common.h