Hello, i see two possible solutions.
The first is to add a bit option to the target struct that define the supported memory access like 8,16,32 bit (default 8/16/32) and target_write_buffer/target_read_buffer would align in respect to this value. I don't prefer this. The second is to add a target architecture identifier and this choose between risc (default) and harvard. On harvard all paramaters from target_write_buffer/target_read_buffer are unchanged and the target read/write memory functions are directly called. All needfull alignment is done in the target implementation. Any suggestions? Regards, Mathias Am 20.02.2011 19:10, schrieb Øyvind Harboe: >> Is there any chance to add a configuration option that >> would disable the alignment functionality for a target? > > I'd rather define another level of polymorphism where the > current behavior is the default, but overridable > by the target. > > This is how we've done things before. > _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
